Class: Bukovina::Importers::Description

Inherits:
Object
  • Object
show all
Defined in:
lib/bukovina/importers/description.rb

Instance Method Summary collapse

Instance Method Details

#importObject



3
4
5
6
7
8
# File 'lib/bukovina/importers/description.rb', line 3

def import
      @attrs.each do |attrs|
memory_attrs = attrs.delete( :memory )
attrs[ :describable ] = Memory.where( memory_attrs ).first

Description.where( attrs ).first_or_create ; end ; end