Sha256: a50564d56f2953a640d0725f8664d2074ce6ed010a898aebd723110babf435d8

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

class JobsController < ApplicationController
  def index
    @store = STORE
    @crashes = CRASHES
  end

  def crashing
    CrashingJob.new.async.perform
    redirect_to jobs_path
  end

  def single
    SingleJob.new.async.perform
    redirect_to jobs_path
  end

  def multiple
    MultipleJob.new.async.perform
    redirect_to jobs_path
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sucker_punch-1.5.0 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.4.0 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.3.2 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.3.1 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.3.0 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.2.1 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.2 rails_app_example/app/controllers/jobs_controller.rb
sucker_punch-1.1 rails_app_example/app/controllers/jobs_controller.rb