Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 337 Bytes
class HomeController < ApplicationController
def index
if user_signed_in?
@teams = Team.where('id = ?', current_user.team_id)
@projects = Project.where('team_id = ?', current_user.team_id)
end
@activities = PublicActivity::Activity.order("created_at DESC").where(owner_id: current_user, owner_type: "User")
end
end