Class: ActiverecordCallbackLens::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- ActiverecordCallbackLens::Railtie
- Defined in:
- lib/activerecord_callback_lens/railtie.rb
Overview
Rails integration hook. When the gem is loaded inside a Rails application, this Railtie registers the gem’s Rake tasks so that rake callback_lens:analyze MODEL=User works without any manual require.
The file is only loaded when Rails::Railtie is defined (guarded by the top-level entry point), so it is a no-op outside of Rails.