summaryrefslogtreecommitdiff
path: root/app/controllers/admin/admin_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-08-16 13:03:49 -0600
committermo khan <mo@mokhan.ca>2014-08-16 13:03:49 -0600
commitf793b7d6c8584b1e972874d61203a40ecc1599cb (patch)
tree4681fa53d0f9d4baba68f33887e693b67c2a9f20 /app/controllers/admin/admin_controller.rb
parente1e23cd2f7c95945721ba145ae5f04abe97e5eb2 (diff)
rename is_admin to admin on users table.
Diffstat (limited to 'app/controllers/admin/admin_controller.rb')
-rw-r--r--app/controllers/admin/admin_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb
index a332eae0..3e64eca2 100644
--- a/app/controllers/admin/admin_controller.rb
+++ b/app/controllers/admin/admin_controller.rb
@@ -6,7 +6,7 @@ module Admin
private
def restrict_access!
- redirect_to root_path unless current_user.try(:is_admin?)
+ redirect_to root_path unless current_user.try(:admin?)
end
end
end