Module: Permits::Roles
- Defined in:
- lib/cancan-permits/permits/roles.rb
Class Method Summary collapse
Class Method Details
.available ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/cancan-permits/permits/roles.rb', line 2 def self.available if defined? ::Cream Cream.available_roles elsif defined? ::User User.roles else [:admin, :guest] end end |