Class: ActiveRecord::Duplicate::Railtie

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

Class Method Summary collapse

Class Method Details

.insertObject



15
16
17
18
19
# File 'lib/activerecord-duplicate/railtie.rb', line 15

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