-
Notifications
You must be signed in to change notification settings - Fork 336
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
I got this Error only on Heorku even Dev and Prod env is perfect ton local #350
Comments
I get the same Error in Production (Heroku) did you manage to find a solution to this? |
@ronakabhattrz @tmyengstrom Do either of you have a code snippet or even better demo app to reproduce the issue? |
Here is a workaround we're currently using:
require "public_activity"
module PublicActivityExtensions
module PublicActivity
module FieldAccess
def parameters
p = read_attribute(:parameters)
p = ActiveSupport::JSON.decode(p) if p.is_a?(String)
p
end
end
end
end
PublicActivity::Activity.class_eval do
include PublicActivityExtensions::PublicActivity::FieldAccess
end |
Thanks @maxsz :) |
@ronakabhattrz @maxsz I’d still like to replicate and resolve this. I, too, have 2 apps deployed on Heroku but neither of those exhibit this particular error. So if either of you can provide more details that would be much appreciated. |
I think this only happens if the column is not
Hash . Then when rendering it always expects a Hash :
|
i am having the same issue |
@AdManteza What’s the database’s type for the |
@maxsz Thanks for your input. I’ll double check that though I’m fairly certain that
json , jsonb or hstore . I have a suspicion that the issue is caused by a null value instead.
|
Thank :)
The text was updated successfully, but these errors were encountered: