Sha256: af25925b28f758d7978cad6323793e6b8b1aa9d5797349437c24758b754549a3

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 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

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/controllers/welcome_controller.rb