Module: EnhancedRequestForgeryProtection::ClassMethods
- Defined in:
- lib/enhanced_request_forgery_protection.rb
Overview
:nodoc:
Instance Method Summary collapse
- #authenticity_invalid_msg ⇒ Object
- #authenticity_scope ⇒ Object
- #authenticity_timed_out_msg ⇒ Object
- #authenticity_window ⇒ Object
Instance Method Details
#authenticity_invalid_msg ⇒ Object
52 53 54 |
# File 'lib/enhanced_request_forgery_protection.rb', line 52 def authenticity_invalid_msg @authenticity_invalid_msg ||= 'Possible form data tampering. Please resubmit.' end |
#authenticity_scope ⇒ Object
40 41 42 |
# File 'lib/enhanced_request_forgery_protection.rb', line 40 def authenticity_scope @authenticity_scope ||= self.name end |
#authenticity_timed_out_msg ⇒ Object
48 49 50 |
# File 'lib/enhanced_request_forgery_protection.rb', line 48 def authenticity_timed_out_msg @authenticity_timed_out_msg ||= 'Form submission timed out. Please resubmit.' end |
#authenticity_window ⇒ Object
44 45 46 |
# File 'lib/enhanced_request_forgery_protection.rb', line 44 def authenticity_window @authenticity_window ||= 1.hour end |