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

#attributed?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/models/concerns/shared/attributions.rb', line 24

def attributed?
  self.attribution.present?
end

#reject_attribution(attributed) ⇒ Object (protected)



30
31
32
# File 'app/models/concerns/shared/attributions.rb', line 30

def reject_attribution(attributed)
  false
end