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

Version Path
hyrax-2.9.6 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.5 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.4 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.3 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.2 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.9.0 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.8.0 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.7.2 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.7.1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.7.0 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.6.0 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-3.0.0.pre.rc1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-3.0.0.pre.beta3 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.5.1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.5.0 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-3.0.0.pre.beta2 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.4.1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-3.0.0.pre.beta1 app/controllers/hyrax/featured_work_lists_controller.rb
hyrax-2.4.0 app/controllers/hyrax/featured_work_lists_controller.rb