stop using && for the short circuit side effect

This commit is contained in:
Aaron Patterson
2011-06-27 18:16:01 -07:00
parent 5d954b4e38
commit 992b3b5e06

View File

@@ -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