Sha256: 49b1333952d030b30071854fe2bbcfc1bf126ca3279e0bdd79751207cf2d5aac
Contents?: true
Size: 505 Bytes
Versions: 48
Compression:
Stored size: 505 Bytes
Contents
module Hyrax class FeaturedWorkListsController < ApplicationController 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 private def list_params params.require(:featured_work_list).permit(featured_works_attributes: [:id, :order]) end end end
Version data entries
48 entries across 48 versions & 1 rubygems