Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Support for jsonb, json, hstore type for parameters" #285

Closed
wants to merge 1 commit into from

Conversation

djvs
Copy link

@djvs djvs commented Jan 11, 2017

Please fix this

@@ -16,7 +16,7 @@ class Activity < ::ActiveRecord::Base
belongs_to :recipient, :polymorphic => true
end
# Serialize parameters Hash
serialize :parameters, Hash
serialize :parameters, Hash unless [:json, :jsonb, :hstore].include?(attribute_types["parameters"].type)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably use columns_hash['parameters'].type as attribute_types doesn't seem to work with Rails 4.

@pokonski
Copy link
Member

This now release as 1.6.0 version, thanks!

Related PR: #317

@pokonski pokonski closed this Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants