lib/iord/nested.rb in iord-1.0.3 vs lib/iord/nested.rb in iord-1.1.0
- old
+ new
@@ -60,10 +60,9 @@
resource = nil unless has_collection?
self.public_send "edit_#{resource_url_method}".to_sym, *(@parents + [resource])
end
def set_resource_with_nested
- self.run_hook :before_set_resource
@parents = Array.new
@parent = nil
if self.parent_models.empty?
path = request.path[1..-1].split('/').reject { |x| x =~ /^#{params[:action]}|[a-f0-9]+(\.#{params[:format]})?$/ }
path = path[0..-2].map { |x| x.singularize.camelize.constantize }