Sha256: c6210ecd351375123da4394657bb446a14a45c89822f37ea393dbbfaabccd4f7

Contents?: true

Size: 165 Bytes

Versions: 3

Compression:

Stored size: 165 Bytes

Contents

def warningless_get(path, headers:)
  if Gem::Requirement.new(">= 5") =~ Rails.gem_version
    get path, headers: headers
  else
    get path, {}, headers
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tiddle-1.4.0 spec/support/warningless_get.rb
tiddle-1.3.0 spec/support/warningless_get.rb
tiddle-1.2.0 spec/support/warningless_get.rb