Created
February 13, 2014 23:35
-
-
Save eka/8986256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure :development do | |
require "sinatra/reloader" # First, a couple of dev-only requires | |
# Automatic reloading of files in the dev environment. Otherwise, it requires an app restart. | |
register Sinatra::Reloader | |
["helpers", "controllers", "models", "core_ext", "routes"].each do |folder| | |
Dir.glob("#{folder}/*.rb").each { |file| also_reload file } | |
end | |
#DataMapper::Model.raise_on_save_failure = true | |
enable :logging, :dump_errors | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment