collab/app/controllers/application_controller.rb

17 lines
561 B
Ruby
Raw Permalink Normal View History

2010-03-04 06:22:45 +00:00
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
2010-03-06 08:00:02 +00:00
before_filter :authenticate, :set_page
2010-03-05 06:48:00 +00:00
include Clearance::Authentication
2010-03-04 06:22:45 +00:00
#helper :all # include all helpers, all the time
protect_from_forgery # See ActionController::RequestForgeryProtection for details
# Scrub sensitive parameters from your log
# filter_parameter_logging :password
2010-03-06 08:00:02 +00:00
def set_page
@page_title = "Collab"
end
2010-03-15 15:47:32 +00:00
2010-03-04 06:22:45 +00:00
end