diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-07 23:41:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-07 23:41:00 +0200 |
commit | b45c9ca9b6571108242c1dfc3d3e160f56baf025 (patch) | |
tree | 831cdef7e70fd26f001aa108daf2365a5fdc8b87 /activerecord/lib/active_record/attribute_methods | |
parent | f90ee8ce2733326e9e1bf91426bb401017adb483 (diff) | |
download | rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.gz rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.bz2 rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.zip |
revises most Lint/EndAlignment offenses
Some case expressions remain, need to think about those ones.
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/serialization.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/serialization.rb b/activerecord/lib/active_record/attribute_methods/serialization.rb index 8fb29fb358..c70178cd2c 100644 --- a/activerecord/lib/active_record/attribute_methods/serialization.rb +++ b/activerecord/lib/active_record/attribute_methods/serialization.rb @@ -51,11 +51,11 @@ module ActiveRecord # using the #as_json hook. coder = if class_name_or_coder == ::JSON Coders::JSON - elsif [:load, :dump].all? { |x| class_name_or_coder.respond_to?(x) } - class_name_or_coder - else - Coders::YAMLColumn.new(class_name_or_coder) - end + elsif [:load, :dump].all? { |x| class_name_or_coder.respond_to?(x) } + class_name_or_coder + else + Coders::YAMLColumn.new(class_name_or_coder) + end decorate_attribute_type(attr_name, :serialize) do |type| Type::Serialized.new(type, coder) |