aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/extension_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-07-13 21:20:12 +0100
committerJon Leighton <j@jonathanleighton.com>2012-07-13 21:20:26 +0100
commit7fa9cb58c6e3b9311f0306173c48874ace7a6b04 (patch)
tree5fccd177bb0f63279e4f6ced60c1f4ac8b5f28ff /activerecord/test/cases/associations/extension_test.rb
parent8baaa452fd8b3688719573977f05b89a9f5b1e6d (diff)
downloadrails-7fa9cb58c6e3b9311f0306173c48874ace7a6b04.tar.gz
rails-7fa9cb58c6e3b9311f0306173c48874ace7a6b04.tar.bz2
rails-7fa9cb58c6e3b9311f0306173c48874ace7a6b04.zip
fix association :extend option
Diffstat (limited to 'activerecord/test/cases/associations/extension_test.rb')
-rw-r--r--activerecord/test/cases/associations/extension_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/extension_test.rb b/activerecord/test/cases/associations/extension_test.rb
index 91fd17e572..917fe6cf52 100644
--- a/activerecord/test/cases/associations/extension_test.rb
+++ b/activerecord/test/cases/associations/extension_test.rb
@@ -72,6 +72,6 @@ class AssociationsExtensionsTest < ActiveRecord::TestCase
def extension_name(model)
builder = ActiveRecord::Associations::Builder::HasMany.new(model, :association_name, nil, {}) { }
builder.send(:wrap_block_extension)
- builder.options[:extend].first.name
+ builder.extension_module.name
end
end