Module: SocialNetworking::Concerns::ShowFeed

Included in:
HomesController
Defined in:
app/controllers/social_networking/concerns/show_feed.rb

Overview

Collects data for feed/profiles page.

Instance Method Summary collapse

Instance Method Details

#feed_data_for(participant, context) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/social_networking/concerns/show_feed.rb', line 6

def feed_data_for(participant, context)
  @participant = participant
  @context = context

  {
    action_items: action_items,
    feed_items: [],
    member_profiles: member_profiles,
    profile_path: @context.social_networking_profile_path
  }
end