diff options
author | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:22:50 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:22:50 -0300 |
commit | 00418ac96bf5a25d3a7cf760499ec19ad3700007 (patch) | |
tree | ce9c29df7f37b5b6afa95439db2e7740082b164a | |
parent | 3927827dbeae477cb29035107fc3ae49bf5fd1cb (diff) | |
parent | 6975a41adfa04109e089416a09005425f9562afd (diff) | |
download | rails-00418ac96bf5a25d3a7cf760499ec19ad3700007.tar.gz rails-00418ac96bf5a25d3a7cf760499ec19ad3700007.tar.bz2 rails-00418ac96bf5a25d3a7cf760499ec19ad3700007.zip |
Merge remote branch 'rails/master' into identity_map
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/associations_test.rb | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 4f4a0a5fee..2c5db51f7f 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -10,7 +10,7 @@ module ActiveRecord # Generates all the attribute related methods for columns in the database # accessors, mutators and query methods. def define_attribute_methods - super(columns_hash.keys) + super(column_names) end # Checks whether the method is defined in the model or any of its subclasses diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb index a1996fcf27..47b8e48582 100644 --- a/activerecord/test/cases/associations_test.rb +++ b/activerecord/test/cases/associations_test.rb @@ -203,14 +203,6 @@ class AssociationProxyTest < ActiveRecord::TestCase assert_equal david.projects, david.projects.reload.reload end end - - if RUBY_VERSION < '1.9' - def test_splat_does_not_invoke_to_a_on_singular_targets - author = posts(:welcome).author - author.reload.target.expects(:to_a).never - [*author] - end - end end class OverridingAssociationsTest < ActiveRecord::TestCase |