class HomeController < ApplicationController
  def index
    @recent = Mock.joins(:mock_views).where('mock_views.user_id = ?', viewer.id)
      .order('mock_views.viewed_at DESC').limit(3)
  end
  
  def mock_set
    render :partial => "recent_mock_set", :locals => {:page => params[:page]}
  end

end

class HomeController < ApplicationController
  def index
    @recent = Mock.joins(:mock_views).
      where('mock_views.user_id = ?', viewer.id).
      order('mock_views.viewed_at DESC').
      limit(3)
  end

  def mock_set
    render :partial => 'recent_mock_set', :locals => {:page => params[:page]}
  end
end

Fix Ruby 1.8 chaining syntax
Fix Ruby 1.8 chaining syntax

The app was crashing on Heroku due to a syntax error. This fixes that.

Change-Id: Ife8f6f2e6038cbd39ca3e00317aa6330f6f43807
Reviewed-on: https://gerrit.causes.com/18765
Tested-by: Aiden Scandella <1faf1e8390cdac9204f160c35828cc423b7acd7b@causes.com>
Reviewed-by: Aiden Scandella <1faf1e8390cdac9204f160c35828cc423b7acd7b@causes.com>
