Class: Releaf::Responders::ConfirmDestroyResponder

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

Instance Method Summary collapse

Instance Method Details

#to_htmlObject


5
6
7
8
9
10
11
# File 'app/lib/releaf/responders/confirm_destroy_responder.rb', line 5

def to_html
  if options[:destroyable]
    super
  else
    render 'refused_destroy'
  end
end