Module: Constellation::Authorization::Default::UserExtensions::InstanceMethods

Defined in:
lib/constellation/authorization/default.rb

Instance Method Summary collapse

Instance Method Details

#has_role?(role) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/constellation/authorization/default.rb', line 16

def has_role?(role)
  self.send(:"#{role}?") if self.respond_to?(:"#{role}?")
end