Sha256: 4c7290e2db7544f3757a5cb51a23e2ce7e7f0fcf2a0571ae6d588492e51307d9

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

require 'active_record/strict_validations/version'

require 'active_record'
require 'active_model'
require 'active_support'

# Validators
require 'active_record/strict_validations/validator/strict_length_validator'

# Validations
require 'active_record/strict_validations/validation'
require 'active_record/strict_validations/validation/string_validation'
require 'active_record/strict_validations/validation/text_validation'
require 'active_record/strict_validations/validation/integer_validation'

class ActiveRecord::Base
  def self.validates_strict_columns(options = {})
    if table_exists?
      ActiveRecord::StrictValidations::Validation.inject_validations(self, options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord_strict_validations-0.3.1 lib/activerecord_strict_validations.rb
activerecord_strict_validations-0.3 lib/activerecord_strict_validations.rb