# Filters added to this controller will be run for all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base include AuthenticatedSystem # If you want "remember me" functionality, add this before_filter to Application Controller before_filter :login_from_cookie protected ## # Populate the current program and other lists like recent episodes. def load_episode_lists @program = Program.find params[:program_id] @recent = @program.episodes.find(:all, :limit => 7) @transcripts = @program.episodes.find(:all, :limit => 10, :conditions => ['has_transcript = ?', true], :order => "transcript_published_at DESC") # TODO @popular end end