Sha256: 2afbc5294450a5b2af9950c00c693d057550af39252f93c6761bd071f7107e98

Contents?: true

Size: 175 Bytes

Versions: 8

Compression:

Stored size: 175 Bytes

Contents

# As in rails 5.1 we can no longer accept direct hashes as parameters so we ned to cast it
def parametrize(params)
  Rails.version.to_f >= 5 ? { params: params } : params
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
helena-2.1.0 spec/support/rails_compatibility.rb
helena-2.0.2 spec/support/rails_compatibility.rb
helena_administration-1.0.3 spec/support/rails_compatibility.rb
helena-2.0.1 spec/support/rails_compatibility.rb
helena_administration-1.0.2 spec/support/rails_compatibility.rb
helena_administration-1.0.1 spec/support/rails_compatibility.rb
helena_administration-1.0.0 spec/support/rails_compatibility.rb
helena-2.0.0 spec/support/rails_compatibility.rb