You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've done all the recommended steps with the config and I was about to give up until I saw that you're using superclass, which doesn't always provide the right class in a rails environment:
class A < ActiveRecord::Base
end
class B < A
end
> A.superclass
=> ActiveRecord::Base
> B.superclass
=> A
> A.base_class
=> A
> B.base_class
=> A
I added this commit to my own forked branch and it now works as expected: bufordtaylor@43ad8ae
The text was updated successfully, but these errors were encountered:
I've had some issues with this gem after updating to rails 5.
Upon installation, the
object.follow(thing)
works fine the first time, but every time thereafter, it fails with:It's because
ApplicationRecord
is the class thatparent_class_name
is returning. You can see by this query:I've done all the recommended steps with the config and I was about to give up until I saw that you're using
superclass
, which doesn't always provide the right class in a rails environment:I added this commit to my own forked branch and it now works as expected: bufordtaylor@43ad8ae
The text was updated successfully, but these errors were encountered: