4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/proxy/action_controller/base.rb', line 4
def self.included(base)
base.class_eval do
before_filter :set_proxy_relative_url_root
around_filter :swap_default_host
around_filter :swap_relative_url_root
around_filter :swap_session_domain
cattr_accessor :original_relative_url_root
cattr_accessor :proxy_relative_url_root
alias_method_chain :redirect_to, :proxy
class << self; delegate :relative_url_root, :relative_url_root=, :to => ::ActionController::AbstractRequest unless ::ActionController::Base.respond_to?(:relative_url_root); end
end
end
|