From 0e681c9f49c02221c009163503aaac802ac04020 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Mon, 21 Sep 2015 10:17:33 -0600 Subject: 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. --- activemodel/lib/active_model/type.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'activemodel/lib') 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 -- cgit v1.2.3