Class: Ragamuffins::Hooks

Inherits:
Object
  • Object
show all
Defined in:
lib/ragamuffins/hooks.rb

Class Method Summary collapse

Class Method Details

.initObject



3
4
5
6
7
8
# File 'lib/ragamuffins/hooks.rb', line 3

def self.init
  ActiveSupport.on_load(:active_record) do
    require 'ragamuffins/models/active_record_extension'
    ::ActiveRecord::Base.send :include, Ragamuffins::ActiveRecordExtension
  end
end