Class: Quilt::TrustedUiServerCsrfStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/quilt_rails/trusted_ui_server_csrf_strategy.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ TrustedUiServerCsrfStrategy

Returns a new instance of TrustedUiServerCsrfStrategy.



5
6
7
# File 'lib/quilt_rails/trusted_ui_server_csrf_strategy.rb', line 5

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_requestObject



9
10
11
12
13
# File 'lib/quilt_rails/trusted_ui_server_csrf_strategy.rb', line 9

def handle_unverified_request
  return if node_server_side_render?

  fallback_handler.handle_unverified_request
end