Sha256: 6dfd1b0a5d7a9d62d1434f2562e13e5939af60ac362bdb659cd2738ff097a690
Contents?: true
Size: 315 Bytes
Versions: 29
Compression:
Stored size: 315 Bytes
Contents
module Schematic module Generator module Restrictions class Numericality < Base def generate(builder) for_validator ActiveModel::Validations::NumericalityValidator do |validator| builder.xs(:pattern, "value" => "\\d+") end end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems