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
Yes, unless you turn it off on a per class basis. Are you suggesting that it should return false unless has_paper_trail is declared on the model in question?
I think this would be the least surprise.
How else would you check if has_paper_trail was declared on the model?
Right now I do this: MyModel.respond_to?(:version_association_name)
Right, you can actually do something like this what the be_versioned matcher for RSpec does, but I see what you're saying and it makes sense to me. Or you could actually do MyModel.include?(PaperTrail::Model::InstanceMethods).
as the title says, calling MyModel.enabled_for_model? returns true for all Classes that inherit from ActiveRecord::Base
Is this the intended behavior?
The text was updated successfully, but these errors were encountered: