samples/rails/moled/app/controllers/application_controller.rb in rackamole-0.0.1 vs samples/rails/moled/app/controllers/application_controller.rb in rackamole-0.0.2
- old
+ new
@@ -1,6 +1,8 @@
class ApplicationController < ActionController::Base
+ include Rackamole::Interceptor
+
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
@@ -8,6 +10,12 @@
before_filter :setup
def setup
session[:user_name] = "Fernand"
end
+
+ protected
+
+ def local_request?
+ return false
+ end
end