diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-16 13:03:49 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-16 13:03:49 -0600 |
| commit | f793b7d6c8584b1e972874d61203a40ecc1599cb (patch) | |
| tree | 4681fa53d0f9d4baba68f33887e693b67c2a9f20 /app/controllers/admin/admin_controller.rb | |
| parent | e1e23cd2f7c95945721ba145ae5f04abe97e5eb2 (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.rb | 2 |
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 |
