Class: Lesli::Role

Inherits:
ApplicationLesliRecord show all
Defined in:
app/models/lesli/role.rb

Constant Summary

Constants inherited from ApplicationLesliRecord

ApplicationLesliRecord::CHARSET

Instance Method Summary collapse

Methods inherited from ApplicationLesliRecord

#generate_resource_uid

Instance Method Details

#has_users?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'app/models/lesli/role.rb', line 51

def has_users?
    User::Role.where(role: self).count > 0
end