lib/teamster/general_helper.rb in teamster-0.3.0 vs lib/teamster/general_helper.rb in teamster-0.3.1
- old
+ new
@@ -15,9 +15,13 @@
def use_included_bootstrap_js?
true
end
+ def login_required
+ halt(403, erb(:login_required)) unless session[:current_user]
+ end
+
def include_bootstrap_css
%q~<link rel='stylesheet' href='/css/bootstrap.min.css' type='text/css'>
<link rel='stylesheet' href='/css/bootstrap-theme.min.css' type='text/css'>~
end