Permalink
Browse files

update version

  • Loading branch information...
1 parent 9eb7689 commit 9f35e5233cbedc6d8eeeb5aa89faa63b08136b52 Vladimir Kuznetsov committed Oct 15, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/acts_as_ordered_tree/instance_methods.rb
  2. +1 −1 lib/acts_as_ordered_tree/version.rb
@@ -418,7 +418,7 @@ def reorder!(parent_id, position_was, position)
end
def update_changed_attributes!(scope_conditions, assignments, binds)
- # assignments for externally changed attributes
+ # add assignments for externally changed attributes
internal_attributes = [parent_column.to_s, position_column.to_s, depth_column.to_s, self.class.primary_key]
external_changed_attrs = changed - internal_attributes
unless external_changed_attrs.empty?
@@ -428,7 +428,6 @@ def update_changed_attributes!(scope_conditions, assignments, binds)
end
end
- # update internal attributes
ordered_tree_scope.where(scope_conditions).update_all([assignments.compact.join(', '), {:id => id}.merge(binds)])
end
@@ -1,3 +1,3 @@
module ActsAsOrderedTree
- VERSION = "1.1.1"
+ VERSION = "1.1.2"
end

0 comments on commit 9f35e52

Please sign in to comment.