BigW Consortium Gitlab

gt_one_coercion.rb 94 Bytes
Newer Older
skv committed
1 2 3 4 5
class GtOneCoercion < Virtus::Attribute
  def coerce(value)
    [1, value.to_i].max
  end
end