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