Sha256: adf49fe130139ab98c3373d13abacdb7316a48dea5f05a4bde399bed64dc7ef8
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
# Reference #### Rules ```ruby # 1. Pattern /\A[+-]?\d+\z/ ``` #### Options Option | Type | Available | Default --- | --- | --- | --- association | symbol | object method | attribute without `_id` polymorphic | symbol | true, false | false #### Usage ```ruby class User < ActiveRecord::Base validates :input_id, reference: true validates :output_id, reference: { polymorphic: true } validates :output_id, reference: { association: :input } end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lite-validators-1.8.0 | docs/REFERENCE.md |
lite-validators-1.7.2 | docs/REFERENCE.md |
lite-validators-1.7.1 | docs/REFERENCE.md |