-
Notifications
You must be signed in to change notification settings - Fork 196
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
remove deprecated custom_parent code #89
base: master
Are you sure you want to change the base?
Conversation
Hey, I was trying to upgrade my app to Rails 5 and found this deprecation warning everywhere. It seems that is not caused by anything in my code since the method is being called internally. Can we merge it?
I'd say it is urgent since master is the only version that support Rails 5 and this deprecation is being show to the users and there is nothing they can do to fix the deprecation. |
@rafaelfranca I certainly won’t argue with getting this merged. :) In the meantime, are you setting |
No, we don't have any calls for
|
The chain that I’m seeing looks like https://github.com/tcocca/acts_as_follower/blob/master/lib/acts_as_follower/follower.rb#L32 calls acts_as_follower/lib/acts_as_follower/follower_lib.rb Lines 9 to 14 in 72dfdff
parent_classes , which is at acts_as_follower/lib/acts_as_follower/follower_lib.rb Lines 35 to 40 in 72dfdff
unless ActsAsFollower.custom_parent_classes , and . . . ah, it looks like the issue is that this variable is initialized to [] instead of nil .
Okay, so the cleanest way here is simply by merging this PR. The second cleanest way is by changing the guard clause to say |
Is this going to be merged? |
Please merge, my tests are ugly :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge this bad boy?
Yes can we merge? |
Does anyone have contact with Tom? |
Hey guys, DEPRECATION WARNING: Setting custom parent classes is deprecated and will be removed in future versions. (called from parent_class_name at /Users/me/.rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/bundler/gems/acts_as_follower-c5ac7b9601c4/lib/acts_as_follower/follower_lib.rb:10) |
This removes the custom parent class code recently deprecated in #56.
I figure we don’t need to merge this right away, because #56 was just merged to
master
, but I wanted to make the PR while it was all still fresh in my mind. Nothing urgent, but we can merge whenever the timing makes sense.Tests remain green, and this should not affect behavior (other than removing custom parent classes).