aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type/immutable_string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/type/immutable_string.rb')
-rw-r--r--activemodel/lib/active_model/type/immutable_string.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/activemodel/lib/active_model/type/immutable_string.rb b/activemodel/lib/active_model/type/immutable_string.rb
index 20b8ca0cc4..41e4a2a1ac 100644
--- a/activemodel/lib/active_model/type/immutable_string.rb
+++ b/activemodel/lib/active_model/type/immutable_string.rb
@@ -16,14 +16,14 @@ module ActiveModel
private
- def cast_value(value)
- result = case value
- when true then "t"
- when false then "f"
- else value.to_s
- end
- result.freeze
- end
+ def cast_value(value)
+ result = case value
+ when true then "t"
+ when false then "f"
+ else value.to_s
+ end
+ result.freeze
+ end
end
end
end