Class: Tracker::Application::LoadStoryStory

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
lib/tracker/application/load_story_story.rb

Instance Method Summary collapse

Instance Method Details

#performObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/tracker/application/load_story_story.rb', line 8

def perform
  parent_story_id = context[:parent_story_id]
  child_story_id = context[:child_story_id]

  story_story = Tracker.pg[:story_stories][
    parent_story_id: parent_story_id,
    child_story_id: child_story_id
  ]

  context[:story_story] = story_story
end