Reputation: 4650
Polymorphic associations do not support computing the class.
I am using rails 7.0.8.4, gem 'ransack' and ruby "3.1.6"
Following code generate an error
@q = Audited::Audit.ransack(params[:q])
Note: This code was working fine in the rails 4 but not working in the rails 7
Upvotes: 0
Views: 56