Class: ActsAsTree::Railtie

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

Class Method Summary collapse

Class Method Details

.insertObject



17
18
19
20
21
# File 'lib/acts_as_tree.rb', line 17

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