Sha256: 54e47fb53bea7fd64d0fa10ea1c9df0bd77a90ebff17d56c7fc464e7a8b7552e
Contents?: true
Size: 356 Bytes
Versions: 18
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true $:.unshift File.expand_path("../lib",__FILE__) require "email_assessor" class TestModel include ActiveModel::Validations def initialize(attributes = {}) @attributes = attributes end def email=(email) @attributes[:email] = email end def read_attribute_for_validation(key) @attributes[key] end end
Version data entries
18 entries across 18 versions & 1 rubygems