class ActsAsNode::Railtie

Public Class Methods

insert() click to toggle source
# File lib/releaf/content/acts_as_node.rb, line 49
def self.insert
  insert_into_active_record
  insert_into_action_controller
end
insert_into_action_controller() click to toggle source
# File lib/releaf/content/acts_as_node.rb, line 60
def self.insert_into_action_controller
  if defined?(ActionController)
    ActionController::Base.send(:include, ActionController::Acts::Node)
  end
end
insert_into_active_record() click to toggle source
# File lib/releaf/content/acts_as_node.rb, line 54
def self.insert_into_active_record
  if defined?(ActiveRecord)
    ActiveRecord::Base.send(:include, ActiveRecord::Acts::Node)
  end
end