mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
stop using && for the short circuit side effect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user