Sha256: 1a97e14f3abc3e00747d2a27a92f77c4435ef7baf5df4da4272d02ae93d3077d
Contents?: true
Size: 570 Bytes
Versions: 13
Compression:
Stored size: 570 Bytes
Contents
# Coordinate #### Rules ```ruby # 1. Pattern :latitude => -90.0..90.0 #=> Value must be a number in this range :longitude => -180.0..180.0 #=> Value must be a number in this range :pair => [:latitude, :longitude] #=> Array of corresponding range value ``` #### Options Option | Type | Available | Default --- | --- | --- | --- boundary | symbol | latitude, longitude, pair | pair #### Usage ```ruby class User < ActiveRecord::Base validates :input0, coordinate: true validates :input1, coordinate: { boundary: :latitude } end ```
Version data entries
13 entries across 13 versions & 1 rubygems