aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-25 09:30:13 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-26 09:04:17 -0700
commit597d9c8af80393f8a3fffd7b935674356e9b73b5 (patch)
tree58db83949cf15d49408b844b78d6869a33f70fb8 /activerecord/lib/active_record/connection_adapters/type
parentd075c84320fab51992a1ab7d020c62ff1bad0b4e (diff)
downloadrails-597d9c8af80393f8a3fffd7b935674356e9b73b5.tar.gz
rails-597d9c8af80393f8a3fffd7b935674356e9b73b5.tar.bz2
rails-597d9c8af80393f8a3fffd7b935674356e9b73b5.zip
Remove checks against `column.type` in abstract adapter quoting
The intention is to eventually remove `column` from the arguments list both for `quote` and for `type_cast` entirely. This is the first step to that end.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/float.rb2
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/integer.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/float.rb b/activerecord/lib/active_record/connection_adapters/type/float.rb
index 51cfa5d86a..28111e9d8e 100644
--- a/activerecord/lib/active_record/connection_adapters/type/float.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/float.rb
@@ -12,6 +12,8 @@ module ActiveRecord
::Float
end
+ alias type_cast_for_database type_cast
+
private
def cast_value(value)
diff --git a/activerecord/lib/active_record/connection_adapters/type/integer.rb b/activerecord/lib/active_record/connection_adapters/type/integer.rb
index 8f3469434c..8e6a509b5b 100644
--- a/activerecord/lib/active_record/connection_adapters/type/integer.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/integer.rb
@@ -12,6 +12,8 @@ module ActiveRecord
::Fixnum
end
+ alias type_cast_for_database type_cast
+
private
def cast_value(value)