lib/generators/admin/install/templates/controllers/admin/base_controller.rb in administration-zero-0.0.13 vs lib/generators/admin/install/templates/controllers/admin/base_controller.rb in administration-zero-0.0.14

- old
+ new

@@ -7,11 +7,11 @@ def set_time_zone Time.zone = cookies[:time_zone] end def authenticate - if admin_user = Admin::User.find_by_id(session[:admin_user_id]) - Admin::Current.user = admin_user + if user = Admin::User.find_by_id(session[:admin_user_id]) + Admin::Current.user = user else redirect_to admin_sign_in_path end end end