Module: Access::Admin
- Defined in:
- lib/access/admin.rb
Overview
Extend Admin users with this plugin, speeds up privileged? by statically returning true and not performing any lookup.
Instance Method Summary collapse
-
#admin? ⇒ Boolean
Admin is admin, of course.
-
#privileged?(*args) ⇒ Boolean
admins have all privileges.
Instance Method Details
#admin? ⇒ Boolean
Admin is admin, of course
15 16 17 |
# File 'lib/access/admin.rb', line 15 def admin? true end |
#privileged?(*args) ⇒ Boolean
admins have all privileges
20 21 22 |
# File 'lib/access/admin.rb', line 20 def privileged?(*args) true end |