Module: Squash::Ruby::ControllerMethods

Defined in:
lib/squash/ruby/controller_methods.rb

Overview

‘ActionController::Base` mixin that provides Rails-specific Squash support.

Examples:

class MyController < ActionController::Base
  include Squash::Ruby::ControllerMethods
  enable_squash_client
end

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

FILTERED_HEADERS =

Request headers that typically contain sensitive information. As an alternative to appending to this constant, you can also override the #filter_for_squash method.

%w(HTTP_AUTHORIZATION RAW_POST_DATA)

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



30
31
32
# File 'lib/squash/ruby/controller_methods.rb', line 30

def self.included(base)
  base.extend ClassMethods
end