Module: Julik::MakeLikeTree
- Defined in:
- lib/make_like_a_tree.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: ImpossibleReparent
Constant Summary collapse
- VERSION =
'1.0.3'
Class Method Summary collapse
-
.bootstrap! ⇒ Object
Injects the module into ActiveRecord.
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.bootstrap! ⇒ Object
Injects the module into ActiveRecord
13 14 15 |
# File 'lib/make_like_a_tree.rb', line 13 def self.bootstrap! ::ActiveRecord::Base.send :include, self end |
.included(base) ⇒ Object
:nodoc:
7 8 9 10 |
# File 'lib/make_like_a_tree.rb', line 7 def self.included(base) #:nodoc: super base.extend(ClassMethods) end |