Class: Autopopulater::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/autopopulater/railtie.rb,
lib/autopopulater/railtie.rb

Class Method Summary collapse

Class Method Details

.insertObject



13
14
15
16
17
# File 'lib/autopopulater/railtie.rb', line 13

def self.insert
  if defined?(ActiveRecord)
    ActiveRecord::Base.send(:include, Autopopulater::Autopopulated)
  end
end