Class: Ragamuffins::Hooks
- Inherits:
-
Object
- Object
- Ragamuffins::Hooks
- Defined in:
- lib/ragamuffins/hooks.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
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 |