Module: Roles::Organization

Extended by:
ActiveSupport::Concern
Included in:
AttributionCopyrightHolder, AttributionOwner
Defined in:
app/models/concerns/roles/organization.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) organization_allowed?

Returns:

  • (Boolean)


14
15
16
# File 'app/models/concerns/roles/organization.rb', line 14

def organization_allowed?
  true
end

- (Boolean) organization_role? (protected)

Returns:

  • (Boolean)


20
21
22
# File 'app/models/concerns/roles/organization.rb', line 20

def organization_role?
  organization.present? && !person
end