Sha256: 184ba0d832fc4edc9b8133c18515110e30ae10932d0761f5e06aa6ce14ed5034

Contents?: true

Size: 352 Bytes

Versions: 17

Compression:

Stored size: 352 Bytes

Contents

class ProjectTicketsSyncController < ApplicationController
  before_filter :find_project


  def show
    render json: @project.ticket_tracker_sync_in_progress?, status: :ok
  end


  def create
    SyncProjectTicketsJob.new(@project).run!
    head :ok
  end


private

  def find_project
    @project = Project.find_by_slug!(params[:slug])
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/controllers/project_tickets_sync_controller.rb
houston-core-0.7.0 app/controllers/project_tickets_sync_controller.rb
houston-core-0.7.0.beta4 app/controllers/project_tickets_sync_controller.rb
houston-core-0.7.0.beta3 app/controllers/project_tickets_sync_controller.rb
houston-core-0.7.0.beta2 app/controllers/project_tickets_sync_controller.rb
houston-core-0.7.0.beta app/controllers/project_tickets_sync_controller.rb
houston-core-0.6.3 app/controllers/project_tickets_sync_controller.rb
houston-core-0.6.2 app/controllers/project_tickets_sync_controller.rb
houston-core-0.6.1 app/controllers/project_tickets_sync_controller.rb
houston-core-0.6.0 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.6 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.5 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.4 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.3 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.2 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.1 app/controllers/project_tickets_sync_controller.rb
houston-core-0.5.0 app/controllers/project_tickets_sync_controller.rb