cubesystems/releaf

View on GitHub
releaf-content/lib/releaf/content/acts_as_node/action_controller/acts/node.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ActionController
  module Acts #:nodoc:
    # This +acts_as+ extension provides the capabilities for attaching object to nodes tree.
    #
    # Text example:
    #
    #   class ContactFormController < ActionController::Base
    #     has_many :acts_as_node
    #   end
    #
    module Node #:nodoc:
      def self.included(base)
        base.extend(::ActsAsNode::ClassMethods)
      end
    end
  end
end