Sha256: 1040555189999c8484e1ed5d28aa679a35ee41754ca3e26eb7e5a82a0ca9f11c
Contents?: true
Size: 230 Bytes
Versions: 18
Compression:
Stored size: 230 Bytes
Contents
class DefaultChangeValidator < ActiveModel::EachValidator # :nodoc: def validate_each(record, attribute, value) return unless record.default_changes[attribute] record.errors.add(attribute, 'changed by default') end end
Version data entries
18 entries across 18 versions & 1 rubygems