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

#privileged?(*args) ⇒ Boolean

admins have all privileges

Returns:

  • (Boolean)


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

def privileged?(*args)
	true
end