mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
move awesome_nested_set leaf? modification to config/initializers/10-patches.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@12682 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -310,7 +310,7 @@ module CollectiveIdea #:nodoc:
|
||||
|
||||
# Returns true if this is the end of a branch.
|
||||
def leaf?
|
||||
new_record? || (persisted? && right.to_i - left.to_i == 1)
|
||||
persisted? && right.to_i - left.to_i == 1
|
||||
end
|
||||
|
||||
# Returns true is this is a child node
|
||||
|
||||
Reference in New Issue
Block a user