We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
quote
1 parent ac6e654 commit 7bb6208Copy full SHA for 7bb6208
activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
@@ -10,6 +10,12 @@ def quote(value, column = nil)
10
return value.quoted_id if value.respond_to?(:quoted_id)
11
12
if column
13
+ ActiveSupport::Deprecation.warn(<<-MSG.squish)
14
+ Passing a column to `quote` has been deprecated. It is only used
15
+ for type casting, which should be handled elsewhere. See
16
+ https://github.com/rails/arel/commit/6160bfbda1d1781c3b08a33ec4955f170e95be11
17
+ for more information.
18
+ MSG
19
value = column.cast_type.type_cast_for_database(value)
20
end
21
0 commit comments