Class: Hyrax::FeaturedWorkListsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/hyrax/featured_work_lists_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
7
8
9
10
# File 'app/controllers/hyrax/featured_work_lists_controller.rb', line 3

def create
  authorize! :update, FeaturedWork
  FeaturedWorkList.new.featured_works_attributes = list_params[:featured_works_attributes]
  respond_to do |format|
    format.html { redirect_to root_path }
    format.json { head :no_content }
  end
end