Module: Shared::HasRoles

Extended by:
ActiveSupport::Concern
Included in:
CollectingEvent, CollectionObject, Loan, Source, TaxonDetermination, TaxonName, TypeMaterial
Defined in:
app/models/concerns/shared/has_roles.rb

Overview

Shared code Roles support.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) has_roles?

Returns:

  • (Boolean)


13
14
15
# File 'app/models/concerns/shared/has_roles.rb', line 13

def has_roles?
  self.roles.size > 0
end