Class: Quilt::TrustedUiServerCsrfStrategy
- Inherits:
-
Object
- Object
- Quilt::TrustedUiServerCsrfStrategy
- Defined in:
- lib/quilt_rails/trusted_ui_server_csrf_strategy.rb
Instance Method Summary collapse
- #handle_unverified_request ⇒ Object
-
#initialize(controller) ⇒ TrustedUiServerCsrfStrategy
constructor
A new instance of TrustedUiServerCsrfStrategy.
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_request ⇒ Object
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 |