Class: Category

Inherits:
ActiveRecord::Base show all
Defined in:
vendor/plugins/awesome_nested_set/test/fixtures/category.rb

Instance Method Summary

Methods inherited from ActiveRecord::Base

quoted_table_name

Instance Method Details

- (Object) recurse(&block)



8
9
10
11
12
13
14
# File 'vendor/plugins/awesome_nested_set/test/fixtures/category.rb', line 8

def recurse &block
  block.call self, lambda{
    self.children.each do |child|
      child.recurse &block
    end
  }
end

- (Object) to_s



4
5
6
# File 'vendor/plugins/awesome_nested_set/test/fixtures/category.rb', line 4

def to_s
  name
end