From 16f51fd9dc454b26d9866b080caa17ffe2f8ce27 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Mon, 13 Aug 2012 23:36:38 -0400 Subject: Updated to use sprockets! Ah, much cleaner. --- templates/project/config.ru | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'templates/project/config.ru') diff --git a/templates/project/config.ru b/templates/project/config.ru index a3a74de..6e1076a 100644 --- a/templates/project/config.ru +++ b/templates/project/config.ru @@ -2,6 +2,17 @@ require 'dashing' configure do set :auth_token, 'YOUR_AUTH_TOKEN' + + helpers do + def protected! + # Put any authentication code you want in here. + # This method is run before accessing any resource. + end + end +end + +map Sinatra::Application.assets_prefix do + run Sinatra::Application.sprockets end run Sinatra::Application \ No newline at end of file -- cgit v1.2.3