summaryrefslogtreecommitdiffstats
path: root/config/initializers/10-patches.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-20 17:54:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-20 17:54:47 +0000
commit94e3eb2b8b2d2cbd45ae5714ab90b5ca7bfe5097 (patch)
tree8e9ab370fd1b313f89bab8324e16721b9f388462 /config/initializers/10-patches.rb
parent89c43d24c82f6b58e8838bb92ddf6808cef6828c (diff)
downloadredmine-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 'config/initializers/10-patches.rb')
-rw-r--r--config/initializers/10-patches.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index d186bcdc4..0ddbcdd06 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -202,3 +202,16 @@ module ActionController
end
end
end
+
+module CollectiveIdea
+ module Acts
+ module NestedSet
+ module Model
+ def leaf_with_new_record?
+ new_record? || leaf_without_new_record?
+ end
+ alias_method_chain :leaf?, :new_record
+ end
+ end
+ end
+end