diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 0cd12f1790..1f3b74bc96 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2092,7 +2092,7 @@ MSG def populate_with_current_scope_attributes self.class.scope_attributes.each do |att,value| - respond_to?("#{att}=") && send("#{att}=", value) + send("#{att}=", value) if respond_to?("#{att}=") end end