about summary refs log tree commit diff
path: root/app/controllers/home_controller.rb
blob: 294749a22f80f276e5d10429b7a656e65f755fa4 (plain) (blame)
1
2
3
4
5
6
7
8
class HomeController < ApplicationController
  before_action :authenticate_user!

  def index
    feed      = Feed.new(:home, current_user.account)
    @statuses = feed.get(20, (params[:offset] || 0).to_i)
  end
end