Sha256: 2fbfbf29f3d8c3b4e008db2392d96fd9796e006118b5639e3fb9f01180cef608
Contents?: true
Size: 363 Bytes
Versions: 49
Compression:
Stored size: 363 Bytes
Contents
module Rpush module Client module ActiveModel module Adm class DataValidator < ::ActiveModel::Validator def validate(record) return unless record.collapse_key.nil? && record.data.nil? record.errors[:data] << 'must be set unless collapse_key is specified' end end end end end end
Version data entries
49 entries across 49 versions & 2 rubygems