Hello, I have the following custom validator
class StatusMappingValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
return nil if can_move_to?(record.class::STATUS_MAP, record.status, value)
record.e...
asked by
05.07.2016 / 14:45