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

Instance Method Details

#admin?Boolean

Admin is admin, of course

Returns:

  • (Boolean)


15
16
17
# File 'lib/access/admin.rb', line 15

def admin?
	true
end

#privileged?(*args) ⇒ Boolean

admins have all privileges

Returns:

  • (Boolean)


20
21
22
# File 'lib/access/admin.rb', line 20

def privileged?(*args)
	true
end