Sha256: 7a776ce41572c502e17de8da45cb2fdc46b668ff6b50ddc6cdffc7884f03c568
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require 'active_record/mysql/strict/version' require 'active_record' require 'active_model' require 'active_support' # Validators require 'active_record/mysql/strict/validator/strict_length_validator' # Validations require 'active_record/mysql/strict/validation' require 'active_record/mysql/strict/validation/string_validation' require 'active_record/mysql/strict/validation/text_validation' require 'active_record/mysql/strict/validation/integer_validation' class ActiveRecord::Base def self.validates_strict_columns(options = {}) if table_exists? ActiveRecord::MySQL::Strict::Validation.inject_validations(self, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_mysql_strict-0.2.1 | lib/activerecord_mysql_strict.rb |