File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
lib/active_record/connection_adapters/sqlserver Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 1010- [ #879 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/879 ) Added visit method for HomogeneousIn
1111- [ #880 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/880 ) Handle any default column class when deduplicating
1212- [ #861 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/861 ) Fix Rails 6.1 database config
13+ - [ #885 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/885 ) Fix the quoting of ActiveModel attributes
1314
1415#### Changed
1516
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ def _quote(value)
118118 value . quoted
119119 when String , ActiveSupport ::Multibyte ::Chars
120120 "#{ QUOTED_STRING_PREFIX } #{ super } "
121+ when ActiveModel ::Attribute
122+ quote ( value . value_for_database )
121123 else
122124 super
123125 end
You can’t perform that action at this time.
0 commit comments