diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 6a964133e9..1f8a99d2e4 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2082,7 +2082,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 |