Sha256: fed5ca52cc0705f3a846d40b54d18869f08402c038a8bc062128efc40a332937

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

class Workflow::CandidaturesController < ApplicationController
  def new
    state_action
  end
  
  def accepted
    state_action
  end
  
  def denied
    state_action
  end
  
  private
  
  def state_action
    @candidatures = current_user.offeror_candidatures.where(state: action_name).includes(:vacancy, :user)
    render 'candidatures/index'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/controllers/workflow/candidatures_controller.rb
voluntary-0.1.0.rc4 app/controllers/workflow/candidatures_controller.rb
voluntary-0.1.0.rc3 app/controllers/workflow/candidatures_controller.rb
voluntary-0.1.0.rc2 app/controllers/workflow/candidatures_controller.rb
voluntary-0.1.0.rc1 app/controllers/workflow/candidatures_controller.rb
voluntary-0.0.3 app/controllers/workflow/candidatures_controller.rb
voluntary-0.0.2 app/controllers/workflow/candidatures_controller.rb
voluntary-0.0.1 app/controllers/workflow/candidatures_controller.rb