Module: AdminRoleCheck
Instance Method Summary collapse
Instance Method Details
#admin? ⇒ Boolean
2 3 4 |
# File 'lib/roles_generic/admin.rb', line 2 def admin? self.to_s.downcase.to_sym == :admin end |
2 3 4 |
# File 'lib/roles_generic/admin.rb', line 2 def admin? self.to_s.downcase.to_sym == :admin end |