Sha256: 7d627f630a25b28637d4db20e12df25f77078cd76fe66711079d5160cb1b9905
Contents?: true
Size: 392 Bytes
Versions: 10
Compression:
Stored size: 392 Bytes
Contents
require 'rubygems' require 'rspec' require 'active_model' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'email_validator' class TestModel include ActiveModel::Validations def initialize(attributes = {}) @attributes = attributes end def read_attribute_for_validation(key) @attributes[key] end end
Version data entries
10 entries across 10 versions & 1 rubygems