Module: AdminRoleCheck

Included in:
String, Symbol
Defined in:
lib/roles_generic/admin.rb

Instance Method Summary collapse

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/roles_generic/admin.rb', line 2

def admin?
  self.to_s.downcase.to_sym == :admin
end