Sha256: cb1d2d779569e8e317acef6138420315e0f89a0936255930ab5b0c2a70e28ea9

Contents?: true

Size: 194 Bytes

Versions: 3

Compression:

Stored size: 194 Bytes

Contents

module LegacyHelpers
  %i[get post patch put delete head].each do |verb|
    define_method(verb) do |path, options = {}|
      super(path, options[:params], options[:headers])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
preserve-2.1.0 spec/support/legacy_helpers.rb
preserve-2.0.1 spec/support/legacy_helpers.rb
preserve-2.0.0 spec/support/legacy_helpers.rb