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