-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fix warnings #26
Comments
Hi, which version of rails are you using? |
As for now latest rails is v3.2.8 which I am using. I might be wrong, but this happens with |
Are there any more deprecation warnings, like owner_type, trackable_type? |
Just .DEPRECATION WARNING: You're trying to create an attribute `recipient_id'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from create_activity at /home/stas/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/public_activity-911c4190580e/lib/public_activity/common.rb:84)
DEPRECATION WARNING: You're trying to create an attribute `recipient_type'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from create_activity at /home/stas/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/public_activity-911c4190580e/lib/public_activity/common.rb:84) I believe if I skip any of the activity attributes like |
What you mean is that the warnings appear on attributes that you didn't assign? Could you try assigning none then, to see if warnings for If you're upgrading from 0.3.x, did you execute |
Yep that solved the issue. |
Hi, I'm on latest released rails with
public_activity
frommaster
. I get the following warnings when using/testing public_activity:Since v0.4.0 is not released, thought you can take a look.
Thanks in advance.
The text was updated successfully, but these errors were encountered: