Skip to content

Instantly share code, notes, and snippets.

@eka
Created February 13, 2014 23:35
Show Gist options
  • Save eka/8986256 to your computer and use it in GitHub Desktop.
Save eka/8986256 to your computer and use it in GitHub Desktop.
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