class StrongerParameters::LessThanConstraint

Public Instance Methods

value(v) click to toggle source
# File lib/stronger_parameters/constraints/comparison_constraints.rb, line 22
def value(v)
  return v if v < limit

  InvalidValue.new(v, "must be less than #{limit}")
end