1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Sean Griffin dd8b5fb9d3 update_column take ruby-land input, not database-land input
In the case of serialized columns, we would expect the unserialized
value as input, not the serialized value. The original issue which made
this distinction, #14163, introduced a bug. If you passed serialized
input to the method, it would double serialize when it was sent to the
database. You would see the wrong input upon reloading, or get an error
if you had a specific type on the serialized column.

To put it another way, `update_column` is a special case of
`update_all`, which would take `['a']` and not `['a'].to_yaml`, but you
would not pass data from `params` to it.

Fixes #18037
2014-12-16 15:23:05 -07:00
..
associations Pass connection rather than alias_tracker 2014-12-13 09:10:29 -05:00
attribute_methods update_column take ruby-land input, not database-land input 2014-12-16 15:23:05 -07:00
attribute_set Don't error when attributes is called on a frozen AR model 2014-12-08 12:48:24 -07:00
coders
connection_adapters Merge pull request #17793 from kamipo/fix_undesirable_range_error 2014-12-11 11:04:37 -07:00
fixture_set
locale
locking Remove the unused second argument to substitute_at 2014-11-17 15:04:40 -08:00
migration
railties Remove environment dependency for db:schema:load 2014-12-04 14:11:02 -07:00
relation Fix ProtocolViolation/bind message supplies for polymorphic + pluck or group 2014-12-11 00:48:06 +01:00
scoping Follow the coding conventions 2014-11-12 15:11:36 +03:00
serializers
tasks activerecord: rake db:create shows underlying error message. 2014-11-04 14:20:37 -08:00
type Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger. 2014-12-12 00:35:48 +09:00
validations Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
aggregations.rb Improve the performance of reading attributes 2014-11-18 15:20:19 -08:00
association_relation.rb
associations.rb Add foreign_type option for polymorphic has_one and has_many. 2014-12-08 18:13:15 -02:00
attribute.rb update_column take ruby-land input, not database-land input 2014-12-16 15:23:05 -07:00
attribute_assignment.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
attribute_decorators.rb
attribute_methods.rb Fix grammar on ActiveRecord::AttributeMethods doc. 2014-11-30 10:26:13 +00:00
attribute_set.rb update_column take ruby-land input, not database-land input 2014-12-16 15:23:05 -07:00
attributes.rb Don't modify the columns hash to set defaults from the attributes API 2014-10-31 16:06:14 -06:00
autosave_association.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
base.rb
callbacks.rb
connection_handling.rb
core.rb docs, bring back ActiveRecord::Core methods in the API. [ci skip] 2014-12-04 09:07:56 +01:00
counter_cache.rb remove useless methods 2014-12-03 03:20:55 +03:00
dynamic_matchers.rb
enum.rb Improve the performance of reading attributes 2014-11-18 15:20:19 -08:00
errors.rb Fix a bug where AR::RecordNotSaved loses error messages 2014-11-27 17:56:12 -08:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
gem_version.rb Start Rails 5 development 🎉 2014-11-28 15:00:06 -02:00
inheritance.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
integration.rb
log_subscriber.rb
migration.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
model_schema.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
nested_attributes.rb
no_touching.rb
null_relation.rb
persistence.rb document that .delete does work on #readonly? records. Closes #11860 2014-12-03 17:31:25 +01:00
query_cache.rb
querying.rb Revert "Improve performance of AR object instantiation" 2014-11-14 14:30:39 -07:00
railtie.rb do not trigger AR lazy load hook before initializers ran. 2014-11-25 18:16:41 +01:00
readonly_attributes.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
reflection.rb Add foreign_type option for polymorphic has_one and has_many. 2014-12-08 18:13:15 -02:00
relation.rb Move PredicateBuilder instantiation to constructor 2014-12-03 13:20:56 -05:00
result.rb Revert "Improve performance of AR object instantiation" 2014-11-14 14:30:39 -07:00
runtime_registry.rb
sanitization.rb Refactor PredicateBuilder from singleton to instance 2014-12-02 11:04:38 -05:00
schema.rb
schema_dumper.rb no need to pass native_database_types around 2014-12-02 13:36:46 +01:00
schema_migration.rb
scoping.rb
serialization.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
statement_cache.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
store.rb Fix type case of "validations" and word-wrap from #17954 [ci skip] 2014-12-08 08:36:04 -08:00
timestamp.rb
transactions.rb Make error message clearer that :on requires a symbol, not a string 2014-12-07 22:16:00 -05:00
translation.rb
type.rb Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger. 2014-12-12 00:35:48 +09:00
validations.rb various error classes: added newlines & removed :nodoc: flag from public attribute. 2014-11-26 15:07:35 +01:00
version.rb