Permalink
Browse files

Tweaks

  • Loading branch information...
wbharding committed Nov 6, 2009
1 parent 526e938 commit a0dcb53af8388ef7708f76d4299ffe9f405f93e2
Showing with 3 additions and 1 deletion.
  1. +2 −0 init.rb
  2. +1 −1 lib/savage_beast/authentication_system.rb
View
@@ -1,5 +1,7 @@
ActionView::Base.send :include, SavageBeast::AuthenticationSystem
ActionController::Base.send :include, SavageBeast::AuthenticationSystem
+# You need to include SavageBeast::ApplicationHelper. Doing it this way
+# makes it be unincluded after the second request when working in development environment.
#ApplicationHelper.send :include, SavageBeast::ApplicationHelper
# FIX for engines model reloading issue in development mode
@@ -38,7 +38,7 @@ def current_user
end
def logged_in?
- #current_user != 0
+ current_user ? true : false #current_user != 0
end
def admin?

0 comments on commit a0dcb53

Please sign in to comment.