Displaying 1 result from an estimated 1 matches for "parent_column".
2006 May 31
1
Help enhancing acts_as_nested_set
...e when it comes to understanding the
guts of Ruby and Rails. Help! At the far bottom of this messgae I''ll
include the entire nested_set.rb file I created. Sorry if this is not the
best way to post to this forum.
def acts_as_nested_set(options = {})
configuration = { :parent_column => "parent_id", :left_column =>
"lft", :right_column => "rgt"}
configuration.update(options) if options.is_a?(Hash)
class_eval <<-EOV
include ActiveRecord::Acts::NestedSet::InstanceMethods
def self.left_col_n...