Class: Fulcrum::Cloudfuji::EventObservers::ProjectTaskNoteObserver
- Inherits:
-
Cloudfuji::EventObserver
- Object
- Cloudfuji::EventObserver
- Fulcrum::Cloudfuji::EventObservers::ProjectTaskNoteObserver
- Defined in:
- lib/fulcrum/cloudfuji/event_observers/project_task_note_observer.rb
Instance Method Summary collapse
Instance Method Details
#project_task_note_created ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fulcrum/cloudfuji/event_observers/project_task_note_observer.rb', line 6 def project_task_note_created data = params['data'] note = Note.find_by_ido_id(data['ido_id']) note ||= Note.new # Just in case note.ido_id ||= data['ido_id'] note.note = data['note'] note.user = User.find_by_ido_id( data['author_id'] ) note.story = Story.find_by_ido_id( data['story_id'] ) puts note.inspect note.save! end |
#project_task_note_imported ⇒ Object
23 24 25 |
# File 'lib/fulcrum/cloudfuji/event_observers/project_task_note_observer.rb', line 23 def project_task_note_imported project_task_note_created end |