Class: Bukovina::Importers::LanguageLink
- Inherits:
-
Link
- Object
- Link
- Bukovina::Importers::LanguageLink
show all
- Defined in:
- lib/bukovina/importers/language_link.rb
Instance Method Summary
collapse
Instance Method Details
#import ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/bukovina/importers/language_link.rb', line 5
def import
@attrs.each do |attrs|
memory_attrs = attrs.delete( :memory )
attrs[ :info ] = Memory.where( memory_attrs ).first
self.class::TYPE.to_s.constantize.where( attrs ).first_or_create
end ; end
|