stop using && for the short circuit side effect
This commit is contained in:
parent
4ec47cac10
commit
4006e738ed
@ -2082,7 +2082,7 @@ def convert_number_column_value(value)
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user