Sha256: d0b87c8009e0d53105e7e1a6eeb05be7012780949256a56b503d2e5d3b4bb6b4

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

# For Rails before http://dev.rubyonrails.org/ticket/10497 was committed
module Webrat
  module RedirectActions #:nodoc:
    
    def put_via_redirect(path, parameters = {}, headers = {})
      put path, parameters, headers
      follow_redirect! while redirect?
      status
    end

    def delete_via_redirect(path, parameters = {}, headers = {})
      delete path, parameters, headers
      follow_redirect! while redirect?
      status
    end
    
  end
end

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
aslakhellesoy-webrat-0.3.2.1 lib/webrat/rails/redirect_actions.rb
benschwarz-webrat-0.3.2.1 lib/webrat/rails/redirect_actions.rb
brynary-webrat-0.3.2.1 lib/webrat/rails/redirect_actions.rb
brynary-webrat-0.3.2.2 lib/webrat/rails/redirect_actions.rb
flazz-webrat-0.3.2.1 lib/webrat/rails/redirect_actions.rb
webrat-0.3.1 lib/webrat/rails/redirect_actions.rb
webrat-0.3.4 lib/webrat/rails/redirect_actions.rb
webrat-0.3.2 lib/webrat/rails/redirect_actions.rb
webrat-0.3.0 lib/webrat/rails/redirect_actions.rb
webrat-0.3.3 lib/webrat/rails/redirect_actions.rb