Module: Shared::Attributions

Extended by:
ActiveSupport::Concern
Included in:
Content, Image
Defined in:
app/models/concerns/shared/attributions.rb

Overview

Shared code for Attribution.

The default behaviour with order by youngest source and oldest source is to place records with NIL *last*

in the list.

When multiple attributions exist the earliest or latest is used in the sort order.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) attributed?

Returns:

  • (Boolean)


27
28
29
# File 'app/models/concerns/shared/attributions.rb', line 27

def attributed? 
  self.attribution.present?
end

- (Object) reject_attribution(attributed) (protected)



33
34
35
# File 'app/models/concerns/shared/attributions.rb', line 33

def reject_attribution(attributed)
  false
end