Sha256: e9963bf51378e4ea2005749301b3f1b337b4b33d704dcbc14b2bf1717767dd2a

Contents?: true

Size: 462 Bytes

Versions: 19

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

19 entries across 19 versions & 1 rubygems

Version Path
sufia-6.2.0 app/controllers/featured_work_lists_controller.rb
sufia-6.1.0 app/controllers/featured_work_lists_controller.rb
sufia-5.0.0 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0.rc4 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0.rc3 app/controllers/featured_work_lists_controller.rb
sufia-5.0.0.rc1 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0.rc2 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0.rc1 app/controllers/featured_work_lists_controller.rb
sufia-4.3.1 app/controllers/featured_work_lists_controller.rb
sufia-6.0.0.beta1 app/controllers/featured_work_lists_controller.rb
sufia-4.2.0 app/controllers/featured_work_lists_controller.rb
sufia-4.1.0 app/controllers/featured_work_lists_controller.rb
sufia-4.0.1 app/controllers/featured_work_lists_controller.rb
sufia-4.0.0 app/controllers/featured_work_lists_controller.rb
sufia-4.0.0.rc2 app/controllers/featured_work_lists_controller.rb
sufia-4.0.0.rc1 app/controllers/featured_work_lists_controller.rb
sufia-4.0.0.beta4 app/controllers/featured_work_lists_controller.rb
sufia-4.0.0.beta3 app/controllers/featured_work_lists_controller.rb