Module: Shared::Attributions

Extended by:
ActiveSupport::Concern
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

#attributed?Boolean

Returns:

  • (Boolean)


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

def attributed? 
  self.attribution.present?
end

#reject_attribution(attributed) ⇒ Object (protected)



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

def reject_attribution(attributed)
  false
end