79313894

Date: 2024-12-28 13:59:55
Score: 1
Natty:
Report link
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])

enter image description here

Note: This code was working fine in the rails 4 but not working in the rails 7

Reasons:
  • Blacklisted phrase (1): but not working
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Jigar Bhatt