Module: Roles::ActiveRecord::InstanceMethods
- Defined in:
- lib/roles_active_record/base.rb
Instance Method Summary collapse
Instance Method Details
#default_role ⇒ Object
22 23 24 25 |
# File 'lib/roles_active_record/base.rb', line 22 def default_role puts "inst - dr" self.class.default_role end |
#default_role? ⇒ Boolean
18 19 20 |
# File 'lib/roles_active_record/base.rb', line 18 def default_role? has_role?(default_role) end |