diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-20 17:54:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-20 17:54:47 +0000 |
commit | 94e3eb2b8b2d2cbd45ae5714ab90b5ca7bfe5097 (patch) | |
tree | 8e9ab370fd1b313f89bab8324e16721b9f388462 /lib/plugins | |
parent | 89c43d24c82f6b58e8838bb92ddf6808cef6828c (diff) | |
download | redmine-94e3eb2b8b2d2cbd45ae5714ab90b5ca7bfe5097.tar.gz redmine-94e3eb2b8b2d2cbd45ae5714ab90b5ca7bfe5097.zip |
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
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb b/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb index 1a7ceae15..9832a655b 100644 --- a/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb +++ b/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb @@ -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 |