Module: Shared::HasRoles

Extended by:
ActiveSupport::Concern
Included in:
CollectingEvent, CollectionObject, Georeference, 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)


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

def has_roles?
  roles.size > 0
end