cubesystems/releaf

View on GitHub
releaf-core/app/lib/releaf/responders/destroy_responder.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Releaf::Responders
  class DestroyResponder < ActionController::Responder
    delegate :render_notification, to: :controller

    def to_html
      render_notification(@resource.destroyed?, failure_message_key: 'cant destroy, because relations exists')
      super
    end
  end
end