Sha256: d494de6c49fbfa9e87b20080f354b3c7feeac2ec43712e0e295ae7072ee7895d
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
module Hydra module Validations module HelperMethods extend ActiveSupport::Concern module ClassMethods def validates_single_cardinality_of *attr_names validates_with SingleCardinalityValidator, _merge_attributes(attr_names) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-validations-0.0.1 | lib/hydra/validations/helper_methods.rb |