Module: Watchtower::ApplicationControllerBase::ClassMethods

Defined in:
lib/watchtower/application_controller_base.rb

Instance Method Summary collapse

Instance Method Details

#force_public_request_handling!Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/watchtower/application_controller_base.rb', line 20

def force_public_request_handling!
  
  self.class_eval do
    def consider_all_requests_local_with_override(*args)
      false
    end
    
    def local_request_with_override?(*args)
      false
    end
    
    alias_method_chain :consider_all_requests_local, :override
    alias_method_chain :local_request?, :override
  end
  
end