We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Innsights sets callbacks to ActiveRecord models when adding the reports, but sometimes this callbacks will not persist during requests.
This issue might be caused by your development environment configurations that reload the model file during each request.
To fix this you can force Rails to reevaluate the Innsights.setup before each request.
Innsights.setup
Rails.configuration.to_prepare do Innsights.setup do # ... end end
NOTE: This fix will not affect production performance, it only reevaluated the block multiple times in development and test environments
See Rails documentation for Rails.configuraion.to_prepare details.
Rails.configuraion.to_prepare