Class: Releaf::Responders::DestroyResponder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
app/lib/releaf/responders/destroy_responder.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



5
6
7
8
# File 'app/lib/releaf/responders/destroy_responder.rb', line 5

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