class ApiNotify::Hooks

Public Class Methods

init() click to toggle source
# 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