aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2015-04-11 17:04:10 +1000
committerHenare Degan <henare.degan@gmail.com>2015-04-11 17:04:10 +1000
commitb29b74b7cb9e3f32d2f66c0432030c828951a707 (patch)
tree805d14fe97c96fd51305a4eb1abda4610ad70616
parentdb143557a9bbfd2d92ebff6f4cb0139da50c5d44 (diff)
Use symbolic operator - only use "and" for control-flow
-rw-r--r--app/models/public_body.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index e1d748582..8f0890b2b 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -775,7 +775,7 @@ class PublicBody < ActiveRecord::Base
def empty_translation_in_params?(attributes)
attrs_with_values = attributes.select do |key, value|
- !value.blank? and key.to_s != 'locale'
+ !value.blank? && key.to_s != 'locale'
end
attrs_with_values.empty?
end