Class: Bukovina::Importers::Description
- Inherits:
-
Object
- Object
- Bukovina::Importers::Description
- Defined in:
- lib/bukovina/importers/description.rb
Instance Method Summary collapse
Instance Method Details
#import ⇒ Object
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 |