Module: Shared::IsData::HasRoles

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/shared/is_data/has_roles.rb

Overview

Shared code Roles support, includes Verifier support at present.

Instance Method Summary collapse

Instance Method Details

#has_roles?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/concerns/shared/is_data/has_roles.rb', line 15

def has_roles?
  roles.size > 0
end