aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/extension_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-09 00:48:56 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-09 00:48:56 -0300
commit0ee7331c35994e543df396548c5b455c00c96cb7 (patch)
tree69106bb7c92fe315ee09a95cc884049c749edb57 /activerecord/test/cases/associations/extension_test.rb
parent941516dabcc5fd02eb736f457197bd115c85f2fb (diff)
downloadrails-0ee7331c35994e543df396548c5b455c00c96cb7.tar.gz
rails-0ee7331c35994e543df396548c5b455c00c96cb7.tar.bz2
rails-0ee7331c35994e543df396548c5b455c00c96cb7.zip
Define the association extensions without need to have a builder
instance
Diffstat (limited to 'activerecord/test/cases/associations/extension_test.rb')
-rw-r--r--activerecord/test/cases/associations/extension_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/extension_test.rb b/activerecord/test/cases/associations/extension_test.rb
index 47dff7d0ea..f8f2832ab1 100644
--- a/activerecord/test/cases/associations/extension_test.rb
+++ b/activerecord/test/cases/associations/extension_test.rb
@@ -75,7 +75,6 @@ class AssociationsExtensionsTest < ActiveRecord::TestCase
private
def extend!(model)
- builder = ActiveRecord::Associations::Builder::HasMany.new(:association_name, nil, {}) { }
- builder.define_extensions(model)
+ ActiveRecord::Associations::Builder::HasMany.define_extensions(model, :association_name) { }
end
end