lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/warden.tt in eucalypt-0.1.3 vs lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/warden.tt in eucalypt-0.2.0
- old
+ new
@@ -26,10 +26,16 @@
helpers do
def current_user
env['warden'].user
end
+ def authenticated?
+ !!current_user
+ end
+
def authenticate
env['warden'].authenticate!
end
+
+ alias_method :logged_in?, :authenticated?
end
end
\ No newline at end of file