mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #4588 from carlosantoniodasilva/remove-require-csrf
Remove not used requires from csrf helper file and test
This commit is contained in:
commit
15a9b2c0d6
2 changed files with 0 additions and 9 deletions
|
@ -1,5 +1,3 @@
|
|||
require 'active_support/core_ext/string/strip'
|
||||
|
||||
module ActionView
|
||||
# = Action View CSRF Helper
|
||||
module Helpers
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'digest/sha1'
|
||||
require 'active_support/core_ext/string/strip'
|
||||
require "active_support/log_subscriber/test_helper"
|
||||
|
||||
# common controller actions
|
||||
|
@ -72,9 +71,7 @@ class CustomAuthenticityParamController < RequestForgeryProtectionController
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
# common test methods
|
||||
|
||||
module RequestForgeryProtectionTests
|
||||
def setup
|
||||
@token = "cf50faa3fe97702ca1ae"
|
||||
|
@ -246,10 +243,6 @@ class FreeCookieControllerTest < ActionController::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class CustomAuthenticityParamControllerTest < ActionController::TestCase
|
||||
def setup
|
||||
ActionController::Base.request_forgery_protection_token = :custom_token_name
|
||||
|
|
Loading…
Reference in a new issue