Module: Taxonomy

Defined in:
lib/taxonomy.rb,
lib/taxonomy/version.rb,
lib/generators/taxonomy/migration/migration_generator.rb

Defined Under Namespace

Classes: MigrationGenerator

Constant Summary collapse

VERSION =
"0.0.1"
@@nested_set_options =
{ :parent_column => 'parent_id',
  :left_column => 'lft',
  :right_column => 'rgt',
  :dependent => :destroy
}

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Taxonomy)

    the object that the method was called on



9
10
11
12
# File 'lib/taxonomy.rb', line 9

def self.setup
  yield self
  @@nested_set_options.symbolize_keys!
end