Sha256: 2f00948b40412d170eb3d8dc934535cc15ffd16b0d9249c9df0df6f46c99e25b
Contents?: true
Size: 491 Bytes
Versions: 17
Compression:
Stored size: 491 Bytes
Contents
class WelcomeController < ApplicationController before_filter :authenticate_user! layout "minimal" def index load_activity end def activity load_activity render partial: "activity/events" end private def load_activity if params[:since] time = Time.parse(params[:since]) @last_date = time.to_date else time = Time.now @last_date = nil end @events = ActivityFeed.new(followed_projects, time, count: 150).events end end
Version data entries
17 entries across 17 versions & 1 rubygems