Class: Inkling::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/inkling/user.rb

Instance Method Summary collapse

Instance Method Details

#has_role?(role) ⇒ Boolean



12
13
14
15
# File 'app/models/inkling/user.rb', line 12

def has_role?(role)
  role = role.to_s
  self.roles.find_by_name(role)
end