Sha256: 44473be8ce61cc368a047a02812ccd0fd95d2e5163c61409d5446434f1f612ad
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
# encoding: utf-8 require "active_model" module Policy # Wrapper around the ActiveModel::Validations # # Provides shared interface for [Policy::Inteface] and [Policy::Follower]. # # @todo Implement it later from scratch without excessive features # # @example # MyClass.include, Policy::Validations # # @private module Validations # The implementation for validations IMPLEMENTATION = ActiveModel::Validations # @private def self.included(klass) klass.__send__(:include, IMPLEMENTATION) end end # module Validations end # module Policy
Version data entries
5 entries across 5 versions & 1 rubygems