-
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
Cannot access parameters from data #321
Comments
I had to insert this to back to work again. #activity.rb
serialize :parameters, Hash |
@brenoperucchi what version were you using? 1.6.0 fixes your issue I believe. |
|
Same in module ::PublicActivity
class Activity
serialize :parameters, Hash
end
end Edit: when you run this on Travis (you start from an empty database), you'll get the following messages which weren't happening in Rails 4:
This might be related. |
@mssola thanks for the details, I'll inspect as this definitely shouldn't happen. |
I noticed that activities generated in response to seed data being created are stored in the db
I didn't even notice this until now because we had upgraded from Postgres 10 to Postgres 11 and it seems Postgres 11 barfs when trying to read/parse the traditional hash syntax (where Postgres 10/Active Record was able to parse both syntaxes w/out problems) with this error :
Also when deploying a review app on Heroku:
Following the above suggestions, I added module PublicActivity
class Activity < inherit_orm('Activity')
serialize :parameters, Hash
...
end
end
|
Any movement on this? I couldn't get the workaround (adding module PublicActivity
class Activity
serialize :parameters, Hash
end
end But, I'm still getting |
Also, I wanted to point out that it did work as of aff5b50 but that's right before you switched to inheriting from |
I cannot understand why it's happening now. I don't now if was happen because I recently upgrade to Rails 5. But suddenly I don't get access to object.parameters of activity
The text was updated successfully, but these errors were encountered: