Sha256: aad9267fb5ebc24dea2134a291589bafbea6999e40a830e280a3ab50c3fb436c

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 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, :resource)
    render 'candidatures/index'
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
voluntary_recruiting-0.1.0 app/controllers/workflow/candidatures_controller.rb
voluntary_recruiting-0.0.1 app/controllers/workflow/candidatures_controller.rb
voluntary-0.3.0 app/controllers/workflow/candidatures_controller.rb
voluntary-0.2.4 app/controllers/workflow/candidatures_controller.rb
voluntary-0.2.3 app/controllers/workflow/candidatures_controller.rb
voluntary-0.2.2 app/controllers/workflow/candidatures_controller.rb
voluntary-0.2.1 app/controllers/workflow/candidatures_controller.rb
voluntary-0.2.0 app/controllers/workflow/candidatures_controller.rb