Module: PermitYo::Default::UserExtensions::InstanceMethods
- Defined in:
- lib/permit_yo/default.rb
Instance Method Summary collapse
Instance Method Details
#has_role?(role) ⇒ Boolean
15 16 17 |
# File 'lib/permit_yo/default.rb', line 15 def has_role?(role) self.send(:"#{role}?") if self.respond_to?(:"#{role}?") end |