Sha256: db350a0b5de634d3ac6861c6bd9970418c878a6201c3c434448291d3b48792bd

Contents?: true

Size: 164 Bytes

Versions: 5

Compression:

Stored size: 164 Bytes

Contents

module Shipit
  module CastValue
    def to_boolean(value)
      ActiveModel::Type::Boolean.new.serialize(value)
    end

    module_function :to_boolean
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 lib/shipit/cast_value.rb
shipit-engine-0.30.0 lib/shipit/cast_value.rb
shipit-engine-0.29.0 lib/shipit/cast_value.rb
shipit-engine-0.28.1 lib/shipit/cast_value.rb
shipit-engine-0.28.0 lib/shipit/cast_value.rb