module StaticRails::RequestForgeryProtectionFallback

Public Instance Methods

method_missing(method_name, *args, **kwargs, &blk) click to toggle source
Calls superclass method
# File lib/static-rails/request_forgery_protection_fallback.rb, line 3
def method_missing(method_name, *args, **kwargs, &blk)
  if respond_to?(method_name)
    ActionController::RequestForgeryProtection.instance_method(method_name).bind(self).call(*args, **kwargs, &blk)
  else
    super
  end
end
respond_to?(method_name, *args) click to toggle source
Calls superclass method
# File lib/static-rails/request_forgery_protection_fallback.rb, line 11
def respond_to?(method_name, *args)
  ActionController::RequestForgeryProtection.instance_method(method_name) || super
end
respond_to_missing?(method_name, *args) click to toggle source
Calls superclass method
# File lib/static-rails/request_forgery_protection_fallback.rb, line 15
def respond_to_missing?(method_name, *args)
  ActionController::RequestForgeryProtection.instance_method(method_name) || super
end