Sha256: 4c26a3409e857784ba148d3fab8959cbc4dee14e10ff083591e117985bd9f846

Contents?: true

Size: 462 Bytes

Versions: 22

Compression:

Stored size: 462 Bytes

Contents

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

  protected

    def list_params
      params.require(:featured_work_list).permit(featured_works_attributes: [:id, :order])
    end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sufia-7.4.1 app/controllers/featured_work_lists_controller.rb
sufia-7.4.0 app/controllers/featured_work_lists_controller.rb
sufia-7.3.1 app/controllers/featured_work_lists_controller.rb
sufia-7.3.0 app/controllers/featured_work_lists_controller.rb
sufia-7.3.0.rc3 app/controllers/featured_work_lists_controller.rb
sufia-7.3.0.rc2 app/controllers/featured_work_lists_controller.rb
sufia-7.3.0.rc1 app/controllers/featured_work_lists_controller.rb
sufia-7.2.0 app/controllers/featured_work_lists_controller.rb
sufia-6.7.0 app/controllers/featured_work_lists_controller.rb
sufia-7.1.0 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.rc2 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.rc1 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.beta4 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.beta3 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.beta2 app/controllers/featured_work_lists_controller.rb
sufia-7.0.0.beta1 app/controllers/featured_work_lists_controller.rb
sufia-6.6.1 app/controllers/featured_work_lists_controller.rb
sufia-6.6.0 app/controllers/featured_work_lists_controller.rb
sufia-6.5.0 app/controllers/featured_work_lists_controller.rb