app/controllers/avo/actions_controller.rb in avo-1.18.2 vs app/controllers/avo/actions_controller.rb in avo-1.19.0
- old
+ new
@@ -65,10 +65,10 @@
path = instance_eval(&path)
end
redirect_to path, "#{response[:message_type]}": response[:message]
elsif response[:type] == :reload
- redirect_back fallback_location: resources_path(@resource.model_class), "#{response[:message_type]}": response[:message]
+ redirect_back fallback_location: resources_path(resource: @resource), "#{response[:message_type]}": response[:message]
end
end
end
end
end