diff options
author | Xavier Noria <fxn@hashref.com> | 2016-09-02 00:43:33 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-09-02 00:43:33 +0200 |
commit | 810dff7c9fa9b2a38eb1560ce0378d760529ee6b (patch) | |
tree | d5ea948c1f0043c7bc4c5b10241279e448a6d696 /activemodel/lib | |
parent | 11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8 (diff) | |
download | rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.gz rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.bz2 rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.zip |
RuboCop is 100% green :tada:
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/type/helpers/numeric.rb | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/type/immutable_string.rb | 2 |
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 |