Sha256: 22822382bfe467d1dd2777d8e8d4f3cf6aba3065438bea4735c67985c081d950

Contents?: true

Size: 585 Bytes

Versions: 35

Compression:

Stored size: 585 Bytes

Contents

class ActivitiesController < ApplicationController
  def index
    # should be activities.page(params[:page], :count => { :select => 'activity.id', :distinct => true }) but it is not working in Rails 3.0.3 
    @activities ||= profile_subject.
                      wall(:profile,
                           :for => current_subject).
                      page(params[:page])

    respond_to do |format|
      format.js
      format.atom
    end
  end

  def show
    activity = Activity.find(params[:id])

    redirect_to activity.direct_object || activity.receiver_subject
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
social_stream-1.1.12 base/app/controllers/activities_controller.rb
social_stream-base-1.1.11 app/controllers/activities_controller.rb
social_stream-1.1.11 base/app/controllers/activities_controller.rb
social_stream-base-1.1.10 app/controllers/activities_controller.rb
social_stream-1.1.10 base/app/controllers/activities_controller.rb
social_stream-base-1.1.9 app/controllers/activities_controller.rb
social_stream-1.1.9 base/app/controllers/activities_controller.rb
social_stream-base-1.1.8 app/controllers/activities_controller.rb
social_stream-1.1.8 base/app/controllers/activities_controller.rb
social_stream-base-1.1.7 app/controllers/activities_controller.rb
social_stream-1.1.7 base/app/controllers/activities_controller.rb
social_stream-base-1.1.6 app/controllers/activities_controller.rb
social_stream-1.1.6 base/app/controllers/activities_controller.rb
social_stream-base-1.1.5 app/controllers/activities_controller.rb
social_stream-1.1.5 base/app/controllers/activities_controller.rb
social_stream-base-1.1.4 app/controllers/activities_controller.rb
social_stream-1.1.4 base/app/controllers/activities_controller.rb
social_stream-1.1.3 base/app/controllers/activities_controller.rb
social_stream-base-1.1.3 app/controllers/activities_controller.rb
social_stream-1.1.2 base/app/controllers/activities_controller.rb