Sha256: 167875435be15427e6e3eeab331589465d75deb83694a7adcbfb4d59e619fc10
Contents?: true
Size: 298 Bytes
Versions: 27
Compression:
Stored size: 298 Bytes
Contents
# frozen_string_literal: true class ValidationCallback include Mongoid::Document field :history, type: Array, default: [] validate do self.history << :validate end before_validation { self.history << :before_validation } after_validation { self.history << :after_validation } end
Version data entries
27 entries across 27 versions & 1 rubygems