aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-09-02 00:43:33 +0200
committerXavier Noria <fxn@hashref.com>2016-09-02 00:43:33 +0200
commit810dff7c9fa9b2a38eb1560ce0378d760529ee6b (patch)
treed5ea948c1f0043c7bc4c5b10241279e448a6d696 /activemodel
parent11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8 (diff)
downloadrails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.gz
rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.bz2
rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.zip
RuboCop is 100% green :tada:
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/type/helpers/numeric.rb2
-rw-r--r--activemodel/lib/active_model/type/immutable_string.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/type/helpers/numeric.rb b/activemodel/lib/active_model/type/helpers/numeric.rb
index ec1d1daf1a..eee745cbc4 100644
--- a/activemodel/lib/active_model/type/helpers/numeric.rb
+++ b/activemodel/lib/active_model/type/helpers/numeric.rb
@@ -8,7 +8,7 @@ module ActiveModel
when false then 0
when ::String then value.presence
else value
- end
+ end
super(value)
end
diff --git a/activemodel/lib/active_model/type/immutable_string.rb b/activemodel/lib/active_model/type/immutable_string.rb
index 41e4a2a1ac..75654e1334 100644
--- a/activemodel/lib/active_model/type/immutable_string.rb
+++ b/activemodel/lib/active_model/type/immutable_string.rb
@@ -21,7 +21,7 @@ module ActiveModel
when true then "t"
when false then "f"
else value.to_s
- end
+ end
result.freeze
end
end