Class: StrictLazy::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- StrictLazy::Railtie
- Defined in:
- lib/strict_lazy/railtie.rb
Overview
Sets the environment-appropriate violation default: :raise in development/test (catch missing preloads), :ignore in production (degrade to N+1 rather than crash). Override with config.strict_lazy.violation. No middleware: values and batches live on the records and are GC’d with the request.