Class: Citation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Citation
- Defined in:
- app/models/citation.rb
Class Method Summary (collapse)
Class Method Details
+ (Object) import(data)
5 6 7 8 9 |
# File 'app/models/citation.rb', line 5 def self.import data reference = Reference.find_by_bolton_key data notes_taxt = data[:notes] ? Importers::Bolton::Catalog::TextToTaxt.notes(data[:notes]) : nil create! reference: reference, pages: data[:pages], notes_taxt: notes_taxt end |