Class: Autopopulater::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Autopopulater::Railtie
- Defined in:
- lib/autopopulater/railtie.rb,
lib/autopopulater/railtie.rb
Class Method Summary collapse
Class Method Details
.insert ⇒ Object
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 |