diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/builder/collection_association.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/builder/collection_association.rb b/activerecord/lib/active_record/associations/builder/collection_association.rb index a7f8c2af46..652c167ca1 100644 --- a/activerecord/lib/active_record/associations/builder/collection_association.rb +++ b/activerecord/lib/active_record/associations/builder/collection_association.rb @@ -35,9 +35,7 @@ module ActiveRecord::Associations::Builder mod = Module.new(&block_extension) extension_module_name = "#{model.name.demodulize}#{name.to_s.camelize}AssociationExtension" - silence_warnings do - model.parent.const_set(extension_module_name, mod) - end + model.parent.const_set(extension_module_name, mod) prev_scope = @scope |