Class: Admin::HighlightsController

Inherits:
ResourcesController
  • Object
show all
Defined in:
app/controllers/admin/highlights_controller.rb

Instance Method Summary collapse

Instance Method Details

#disableObject


5
6
7
8
9
# File 'app/controllers/admin/highlights_controller.rb', line 5

def disable
  @highlight = Highlight.find(params[:id])
  @highlight.disable!
  redirect_to url_for(controller: "/admin/highlights", action: :edit, id: @highlight), notice: "Disabled!"
end