app/controllers/application.rb in parlement-0.9 vs app/controllers/application.rb in parlement-0.10

- old
+ new

@@ -1,12 +1,14 @@ # The filters added to this controller will be run for all controllers in the application. # Likewese will all the methods added be available for all controllers. require 'login_engine' +require 'term/ansicolor' class ApplicationController < ActionController::Base include LoginEngine + include Term::ANSIColor model :user before_filter :set_charset before_filter :set_login_from_cookie after_filter :fix_unicode_for_safari @@ -30,9 +32,10 @@ unless session[:person] if (person = Person.find_by_name(cookies[:person_name])) and \ ((!person.user and !cookies[:salted_password]) \ or (person.user \ and person.user.salted_password == cookies[:salted_password])) + logger.info yellow { bold { "#{person.name} is back" } } session[:person] = person session[:user] = person.user end end end