diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-10 12:57:44 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-10 15:45:46 -0700 |
commit | e6ac56a848eb253a2162d7b18ad6380af22971bd (patch) | |
tree | 075a7005474e9af32e5a72803c32a670373af35d /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 2ee2072bbaa3a3694cca8edd4e02cc90e175fc1e (diff) | |
download | rails-e6ac56a848eb253a2162d7b18ad6380af22971bd.tar.gz rails-e6ac56a848eb253a2162d7b18ad6380af22971bd.tar.bz2 rails-e6ac56a848eb253a2162d7b18ad6380af22971bd.zip |
Stop passing a column to `quote` when prepared statements are turned off
I'm planning on deprecating the column argument to mirror the
deprecation in [arel].
[arel]: https://github.com/rails/arel/commit/6160bfbda1d1781c3b08a33ec4955f170e95be11
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index fb68ad17b2..1f265a55df 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -90,9 +90,7 @@ module ActiveRecord value.to_s(:db) end - private - - def prepare_binds_for_database(binds) + def prepare_binds_for_database(binds) # :nodoc: binds.map do |column, value| if column column_name = column.name @@ -102,6 +100,8 @@ module ActiveRecord end end + private + def types_which_need_no_typecasting [nil, Numeric, String] end |