diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-02 17:59:55 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-02 20:28:24 -0200 |
commit | 42c51b8527e49ae2d7a0f6cc009e53865b7910c1 (patch) | |
tree | f13997f1c860650fa60612245ec371e68c1a4b38 /activerecord/lib/active_record/base.rb | |
parent | 6673d88f6f234ab493ad314f930901ce3a288da8 (diff) | |
download | rails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.tar.gz rails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.tar.bz2 rails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.zip |
Doesn't need to sort, lets users of attribute_names sort them if they want
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b972b193e4..6573cd5e89 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1455,9 +1455,9 @@ MSG @attributes.has_key?(attr_name.to_s) end - # Returns an array of names for the attributes available on this object sorted alphabetically. + # Returns an array of names for the attributes available on this object. def attribute_names - @attributes.keys.sort + @attributes.keys end # Returns the value of the attribute identified by <tt>attr_name</tt> after it has been typecast (for example, |