Class: StaticRails::ValidatesCsrfToken
- Inherits:
-
Object
- Object
- StaticRails::ValidatesCsrfToken
- Includes:
- RequestForgeryProtectionFallback
- Defined in:
- lib/static-rails/validates_csrf_token.rb
Instance Method Summary collapse
Methods included from RequestForgeryProtectionFallback
#method_missing, #respond_to?, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class StaticRails::RequestForgeryProtectionFallback
Instance Method Details
#call(req) ⇒ Object
7 8 9 |
# File 'lib/static-rails/validates_csrf_token.rb', line 7 def call(req) valid_authenticity_token?(req.session, req.["_csrf_token"]) end |