Skip to content

Commit

Permalink
🔥 Remove reloader for lib folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiny committed Dec 15, 2019
1 parent b30008b commit 83d3b58
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions deep_sea.rb
@@ -1,5 +1,6 @@
require 'sinatra'
require 'sinatra/content_for'
require 'sinatra/reloader' if development?
require 'tilt/erubis'
require 'securerandom'
require 'require_all'
Expand All @@ -12,13 +13,6 @@
set :erb, escape_html: true
end

configure(:development) do
require 'sinatra/reloader'
also_reload 'lib/game.rb'
also_reload 'lib/round.rb'
# Dir[File.join(__dir__, 'lib', '*.rb')].each { |file| also_reload file }
end

before '/round/:round_id/*' do
@round_id = params[:round_id].to_i
@round = session[:game].round
Expand Down

0 comments on commit 83d3b58

Please sign in to comment.