Sha256: e65f192629d717e619b586fe5cfe0ccc67f194c2329a92fcc6089a87c860e6d4
Contents?: true
Size: 183 Bytes
Versions: 3
Compression:
Stored size: 183 Bytes
Contents
# frozen_string_literal: true module Kredis module Type class Boolean < ActiveModel::Type::Boolean def serialize(value) super ? 1 : 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kredis-1.7.0 | lib/kredis/type/boolean.rb |
kredis-1.6.1 | lib/kredis/type/boolean.rb |
kredis-1.6.0 | lib/kredis/type/boolean.rb |