Sha256: 869ea3fac644c4ebc9ce794eea49bf19cdd951164d70794094ee7e3050ea449c

Contents?: true

Size: 332 Bytes

Versions: 16

Compression:

Stored size: 332 Bytes

Contents

module Shipit
  class CommitsController < ShipitController
    def update
      commit.update(params.require(:commit).permit(:locked))
      head :ok
    end

    private

    def commit
      @commit ||= stack.commits.find(params[:id])
    end

    def stack
      @stack ||= Stack.from_param!(params[:stack_id])
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
shipit-engine-0.27.1 app/controllers/shipit/commits_controller.rb
shipit-engine-0.27.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.26.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.25.1 app/controllers/shipit/commits_controller.rb
shipit-engine-0.25.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.24.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.23.1 app/controllers/shipit/commits_controller.rb
shipit-engine-0.23.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.22.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.21.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.20.1 app/controllers/shipit/commits_controller.rb
shipit-engine-0.20.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.19.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.18.1 app/controllers/shipit/commits_controller.rb
shipit-engine-0.18.0 app/controllers/shipit/commits_controller.rb
shipit-engine-0.17.0 app/controllers/shipit/commits_controller.rb