Skip to content

Commit

Permalink
Merge pull request #7 from lcdhoffman/master
Browse files Browse the repository at this point in the history
init  in post if it doesn't exist
  • Loading branch information
quoideneuf committed Jan 11, 2014
2 parents a5f90fc + f7fa372 commit 9d826b2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ class MigrationService < Sinatra::Base
end


get '/jobs/new' do
erb :"jobs/new"
end


post '/jobs' do

$busy ||= Atomic.new(false)
raise "BUSY" if $busy.value
$busy.value = true

Expand Down

0 comments on commit 9d826b2

Please sign in to comment.