Sha256: 99f2279c5ea84f77a970d9e292ea600c24c3d9e2eb19344429dd52c42e087e0a
Contents?: true
Size: 408 Bytes
Versions: 55
Compression:
Stored size: 408 Bytes
Contents
# Validates Arm model. class ArmValidator < ActiveModel::Validator def validate(record) if ActiveRecord::Base.connection .column_exists?(:arms, :can_message_after_membership_complete) && record.can_message_after_membership_complete.nil? record.errors[:base] << "An Arm must have a value for can_message"\ "_after_membership_complete" end end end
Version data entries
55 entries across 55 versions & 1 rubygems