Skip to content

Commit

Permalink
init in post if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
quoideneuf committed Jan 11, 2014
1 parent ba0fc39 commit f7fa372
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 f7fa372

Please sign in to comment.