search for: left_col_name

Displaying 2 results from an estimated 2 matches for "left_col_name".

2006 May 31
1
Help enhancing acts_as_nested_set
...I''m having trouble with what is a class method where it should be defined and instance methods and how they are accessible. Probably your typical stuff for newbie rubies. Here''s a snippet from nested_set.rb. I wanted to add some more class methods and had trouble accessing the left_col_name, etc. methods. I first converted them into class methods by prepending "self." in front of them, only to discover that the instance methods lost the ability to access them. So I ended up defining them twice as you can see below. I am woefully lacking in my understanding of how this stuf...
2009 Oct 14
0
[PATCH server] hack betternested set to enable pool deletion
...etter_nested_set.rb index 9efbf25..ea8aea3 100644 --- a/src/vendor/plugins/betternestedset/lib/better_nested_set.rb +++ b/src/vendor/plugins/betternestedset/lib/better_nested_set.rb @@ -430,7 +430,7 @@ module SymetrieCom return unless reloaded dif = self[right_col_name] - self[left_col_name] + 1 if acts_as_nested_set_options[:dependent] == :delete_all - base_set_class.delete_all( "#{scope_condition} AND (#{prefixed_left_col_name} BETWEEN #{self[left_col_name]} AND #{self[right_col_name]})" ) + #base_set_class.delete_all( "#{scope_conditi...