From 94e3eb2b8b2d2cbd45ae5714ab90b5ca7bfe5097 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 20 Jan 2014 17:54:47 +0000 Subject: 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 --- config/initializers/10-patches.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config/initializers/10-patches.rb') 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 -- cgit v1.2.3