File: tree.rb

package info (click to toggle)
ruby-acts-as-tree 2.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: ruby: 748; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'acts_as_tree'

module ActiveRecord
  module Acts #:nodoc:
    module Tree
      include ::ActsAsTree

      def self.included(base)
        Kernel.warn "[DEPRECATION] The module ActiveRecord::Acts::Tree has moved to ActsAsTree"

        base.extend ::ActsAsTree::ClassMethods
      end
    end
  end
end