has_attribute?(attr_name)
Returns true if the given attribute is in the attributes hash
# File activerecord/lib/active_record/attribute_methods.rb, line 173 def has_attribute?(attr_name) @attributes.has_key?(attr_name.to_s) end