Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gt_one_coercion.rb « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 99be51bc8c63fc649136e12ada761d73447bc411 (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

class GtOneCoercion < Virtus::Attribute
  def coerce(value)
    [1, value.to_i].max
  end
end