Displaying 1 result from an estimated 1 matches for "move_amount".
Did you mean:
money_amount
2006 May 31
1
Help enhancing acts_as_nested_set
...ad
raise "item not properly nested" unless !unknown?
raise "cellar not empty" unless is_cellar_empty? || force == true
empty_cellar if !is_cellar_empty?
self.class.transaction {
right_bound = self[right_col_name]
move_amount = right_bound + 1
size = right_bound - self[left_col_name] + 1
# Move self to cellar
self.class.update_all( "#{right_col_name} = (#{right_col_name}
- #{move_amount}), #{left_col_name} = (#{left_col_name} - #{move_amount})",
"#{left_col_name} >=...