Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 208 Bytes
class ShoutFeed
extend ActiveModel::Naming
def initialize(user_ids)
@user_ids = user_ids
end
def shouts
Shout.where(user_id: @user_ids).current.includes(:user, {:medium=>:shout})
end
end