Class: Tracker::Application::StartStory
- Inherits:
-
Object
- Object
- Tracker::Application::StartStory
- Includes:
- Interactor
- Defined in:
- lib/tracker/application/start_story.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
8 9 10 11 12 |
# File 'lib/tracker/application/start_story.rb', line 8 def perform story_id = context[:story_id] Tracker.pg[:stories].where(id: story_id).update(started_at: Sequel::CURRENT_TIMESTAMP) end |