Module: EnhancedRequestForgeryProtection::ClassMethods

Defined in:
lib/enhanced_request_forgery_protection.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#authenticity_invalid_msgObject



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_scopeObject



40
41
42
# File 'lib/enhanced_request_forgery_protection.rb', line 40

def authenticity_scope
  @authenticity_scope ||= self.name
end

#authenticity_timed_out_msgObject



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_windowObject



44
45
46
# File 'lib/enhanced_request_forgery_protection.rb', line 44

def authenticity_window
  @authenticity_window ||= 1.hour
end