##// END OF EJS Templates
remove awesome_nested_set patch from config/initializers/10-patches.rb (#6579)...
Toshi MARUYAMA -
r12872:b4c903c0352a
parent child
Show More
@@ -227,8 +227,6 if Rails::VERSION::MAJOR < 4 && RUBY_VERSION >= "2.1"
227 end
227 end
228 end
228 end
229
229
230 require 'awesome_nested_set/version'
231
232 module CollectiveIdea
230 module CollectiveIdea
233 module Acts
231 module Acts
234 module NestedSet
232 module NestedSet
@@ -237,23 +235,6 module CollectiveIdea
237 new_record? || leaf_without_new_record?
235 new_record? || leaf_without_new_record?
238 end
236 end
239 alias_method_chain :leaf?, :new_record
237 alias_method_chain :leaf?, :new_record
240 # Reload is needed because children may have updated
241 # their parent (self) during deletion.
242 if ::AwesomeNestedSet::VERSION > "2.1.6"
243 module Prunable
244 def destroy_descendants_with_reload
245 destroy_descendants_without_reload
246 reload
247 end
248 alias_method_chain :destroy_descendants, :reload
249 end
250 else
251 def destroy_descendants_with_reload
252 destroy_descendants_without_reload
253 reload
254 end
255 alias_method_chain :destroy_descendants, :reload
256 end
257 end
238 end
258 end
239 end
259 end
240 end
General Comments 0
You need to be logged in to leave comments. Login now