Sha256: 171870c805feb00dd51dcdfcd5618b29c7ac80e8eaab24fbae7897339def8e99

Contents?: true

Size: 255 Bytes

Versions: 49

Compression:

Stored size: 255 Bytes

Contents

def update_item
  if defined?(Exemplify)
    Exemplify.find_each do |exemplify|
      if exemplify.item
        exemplify.item.update_column(:manifestation_id, exemplify.manifestation_id) unless exemplify.item.manifestation_id
      end
    end
  end
end

Version data entries

49 entries across 48 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 lib/tasks/item.rb
enju_biblio-0.3.17 lib/tasks/item.rb
enju_biblio-0.3.16 lib/tasks/item.rb
enju_biblio-0.3.15 lib/tasks/item.rb
enju_biblio-0.3.14 lib/tasks/item.rb
enju_biblio-0.3.13 lib/tasks/item.rb
enju_biblio-0.3.12 lib/tasks/item.rb
enju_biblio-0.3.11 lib/tasks/item.rb
enju_biblio-0.3.10 lib/tasks/item.rb
enju_biblio-0.3.10.rc.3 lib/tasks/item.rb
enju_biblio-0.3.10.rc.2 lib/tasks/item.rb
enju_biblio-0.3.10.rc.1 lib/tasks/item.rb
enju_biblio-0.3.9 lib/tasks/item.rb
enju_biblio-0.4.0.rc.1 lib/tasks/item.rb
enju_biblio-0.3.8 lib/tasks/item.rb
enju_biblio-0.3.7 lib/tasks/item.rb
enju_biblio-0.3.6 lib/tasks/item.rb
enju_biblio-0.4.0.beta.2 lib/tasks/item.rb
enju_biblio-0.4.0.beta.1 lib/tasks/item.rb
enju_biblio-0.3.5 lib/tasks/item.rb