diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 10:17:33 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-21 10:17:33 -0600 |
commit | 0e681c9f49c02221c009163503aaac802ac04020 (patch) | |
tree | ad17aa6c2c083314343f0c8c57e4390742956c2e /activemodel | |
parent | 56a8b40b400169fd9d96856721d0bbb01dbfaa64 (diff) | |
download | rails-0e681c9f49c02221c009163503aaac802ac04020.tar.gz rails-0e681c9f49c02221c009163503aaac802ac04020.tar.bz2 rails-0e681c9f49c02221c009163503aaac802ac04020.zip |
Remove no-op options being passed in AM type registrations
The `override` option is only a thing for Active Record registrations.
We should figure out how to make this properly error out without doing
anything too weird to the code.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/type.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/activemodel/lib/active_model/type.rb b/activemodel/lib/active_model/type.rb index e45354f417..f8ca7d0512 100644 --- a/activemodel/lib/active_model/type.rb +++ b/activemodel/lib/active_model/type.rb @@ -42,16 +42,16 @@ module ActiveModel end end - register(:big_integer, Type::BigInteger, override: false) - register(:binary, Type::Binary, override: false) - register(:boolean, Type::Boolean, override: false) - register(:date, Type::Date, override: false) - register(:date_time, Type::DateTime, override: false) - register(:decimal, Type::Decimal, override: false) - register(:float, Type::Float, override: false) - register(:integer, Type::Integer, override: false) - register(:string, Type::String, override: false) - register(:text, Type::Text, override: false) - register(:time, Type::Time, override: false) + register(:big_integer, Type::BigInteger) + register(:binary, Type::Binary) + register(:boolean, Type::Boolean) + register(:date, Type::Date) + register(:date_time, Type::DateTime) + register(:decimal, Type::Decimal) + register(:float, Type::Float) + register(:integer, Type::Integer) + register(:string, Type::String) + register(:text, Type::Text) + register(:time, Type::Time) end end |