mirror of https://github.com/rails/rails
Removed unused code from request_forgery_protection tests
This commit is contained in:
parent
a9b41fee72
commit
0ad06f2545
|
@ -12,14 +12,6 @@ module RequestForgeryProtectionActions
|
|||
render :inline => "<%= button_to('New', '/') %>"
|
||||
end
|
||||
|
||||
def external_form
|
||||
render :inline => "<%= form_tag('http://farfar.away/form', :authenticity_token => 'external_token') {} %>"
|
||||
end
|
||||
|
||||
def external_form_without_protection
|
||||
render :inline => "<%= form_tag('http://farfar.away/form', :authenticity_token => false) {} %>"
|
||||
end
|
||||
|
||||
def unsafe
|
||||
render :text => 'pwn'
|
||||
end
|
||||
|
@ -28,14 +20,6 @@ module RequestForgeryProtectionActions
|
|||
render :inline => "<%= csrf_meta_tags %>"
|
||||
end
|
||||
|
||||
def external_form_for
|
||||
render :inline => "<%= form_for(:some_resource, :authenticity_token => 'external_token') {} %>"
|
||||
end
|
||||
|
||||
def form_for_without_protection
|
||||
render :inline => "<%= form_for(:some_resource, :authenticity_token => false ) {} %>"
|
||||
end
|
||||
|
||||
def form_for_remote
|
||||
render :inline => "<%= form_for(:some_resource, :remote => true ) {} %>"
|
||||
end
|
||||
|
@ -70,7 +54,6 @@ module RequestForgeryProtectionActions
|
|||
negotiate_same_origin
|
||||
end
|
||||
|
||||
def rescue_action(e) raise e end
|
||||
end
|
||||
|
||||
# sample controllers
|
||||
|
|
Loading…
Reference in New Issue