summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers')
-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