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` --- activerecord/lib/active_record/type/binary.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 activerecord/lib/active_record/type/binary.rb (limited to 'activerecord/lib/active_record/type/binary.rb') diff --git a/activerecord/lib/active_record/type/binary.rb b/activerecord/lib/active_record/type/binary.rb new file mode 100644 index 0000000000..e34b7bb268 --- /dev/null +++ b/activerecord/lib/active_record/type/binary.rb @@ -0,0 +1,17 @@ +module ActiveRecord + module Type + class Binary < Value # :nodoc: + def type + :binary + end + + def binary? + true + end + + def klass + ::String + end + end + end +end -- cgit v1.2.3