Class: Import
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Import
- Defined in:
- app/models/import.rb
Instance Method Summary collapse
Instance Method Details
#fail!(exception) ⇒ Object
13 14 15 16 17 |
# File 'app/models/import.rb', line 13 def fail!(exception) self.output = exception.to_s + "\n\n" + exception.backtrace.join("\n") self.finished_at = Time.now save! end |
#finish!(messages) ⇒ Object
6 7 8 9 10 11 |
# File 'app/models/import.rb', line 6 def finish!() self.output = self.success = true self.finished_at = Time.now save! end |