aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2016-11-15 16:14:15 -0500
committerJon Moss <me@jonathanmoss.me>2016-11-15 16:42:44 -0500
commit0a8b212db76441df29a572580f1dab596d28d73d (patch)
tree501f733bbc3ad2929c308add2ccd17a19f3092c7 /tasks
parent6e692e6e5bb90fbaf1524429139daa9bd1c4f990 (diff)
downloadrails-0a8b212db76441df29a572580f1dab596d28d73d.tar.gz
rails-0a8b212db76441df29a572580f1dab596d28d73d.tar.bz2
rails-0a8b212db76441df29a572580f1dab596d28d73d.zip
Support AC::Parameters for PG HStore
As reported via #26904, there is a regression in how values for Postgres' HStore column type are being processed, beginning in Rails 5. Currently, the way that Active Record checks whether or not values need to be serialized and put into the correct storage format is whether or not it is a `Hash` object. Since `ActionController::Parameters` no longer inherits from `Hash` in Rails 5, this conditional now returns false. To remedy this, we are now checking to see whether the `value` parameters being passed in responds to a certain method, and then calling the `serialize` method, except this time with a real Hash object. Keeping things DRY! Fixes #26904.
Diffstat (limited to 'tasks')
0 files changed, 0 insertions, 0 deletions