Sha256: 834156f4a5b9ced786399c5c32234bef5c526c905f3d50211c210c93f07a79a0
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
module Federails module Client class ActivitiesController < Federails::ApplicationController before_action :authenticate_user!, only: [:feed] # layout 'layouts/application' # GET /app/activities # GET /app/activities.json def index @activities = policy_scope(Federails::Activity, policy_scope_class: Federails::Client::ActivityPolicy::Scope).all @activities = @activities.where actor_id: params[:actor_id] if params[:actor_id] end # GET /app/feed # GET /app/feed.json def feed @activities = Activity.feed_for(current_user.actor) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
federails-0.1.0 | app/controllers/federails/client/activities_controller.rb |