aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-01 09:51:32 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-01 09:51:48 -0700
commit03f6e235a32b4ba540db11586b66416e780bc3d7 (patch)
treea00ca0da76901bca1ba961763f2a890b1d94822a /activerecord/lib
parentcab75da939399e80ee20faf15419f3ae30f2d28e (diff)
downloadrails-03f6e235a32b4ba540db11586b66416e780bc3d7.tar.gz
rails-03f6e235a32b4ba540db11586b66416e780bc3d7.tar.bz2
rails-03f6e235a32b4ba540db11586b66416e780bc3d7.zip
💣 I forgot to commit the arity change
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/quoting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
index 679878d860..143d7d9574 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
@@ -19,7 +19,7 @@ module ActiveRecord
# Cast a +value+ to a type that the database understands. For example,
# SQLite does not understand dates, so this method will convert a Date
# to a String.
- def type_cast(value, column)
+ def type_cast(value, column = nil)
if value.respond_to?(:quoted_id) && value.respond_to?(:id)
return value.id
end