Class: ApiNotify::Hooks
- Inherits:
-
Object
- Object
- ApiNotify::Hooks
- Defined in:
- lib/api_notify/hooks.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
3 4 5 6 7 8 |
# File 'lib/api_notify/hooks.rb', line 3 def self.init ActiveSupport.on_load(:active_record) do require 'api_notify/active_record/main' ::ActiveRecord::Base.send :include, ApiNotify::ActiveRecord::Main end end |