From 728fa69839d2c3b839391f9077896c06df80bddf Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Tue, 27 May 2014 10:59:22 -0700 Subject: Move types to the top level `ActiveRecord` namespace `ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value` --- .../connection_adapters/type/decimal.rb | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 activerecord/lib/active_record/connection_adapters/type/decimal.rb (limited to 'activerecord/lib/active_record/connection_adapters/type/decimal.rb') diff --git a/activerecord/lib/active_record/connection_adapters/type/decimal.rb b/activerecord/lib/active_record/connection_adapters/type/decimal.rb deleted file mode 100644 index ac5af4b963..0000000000 --- a/activerecord/lib/active_record/connection_adapters/type/decimal.rb +++ /dev/null @@ -1,27 +0,0 @@ -module ActiveRecord - module ConnectionAdapters - module Type - class Decimal < Value # :nodoc: - include Numeric - - def type - :decimal - end - - def klass - ::BigDecimal - end - - private - - def cast_value(value) - if value.respond_to?(:to_d) - value.to_d - else - value.to_s.to_d - end - end - end - end - end -end -- cgit v1.2.3