Method: ActiveModel::Validator#initialize

Defined in:
activemodel/lib/active_model/validator.rb

#initialize(options = {}) ⇒ Validator

Accepts options that will be made available through the options reader.



108
109
110
# File 'activemodel/lib/active_model/validator.rb', line 108

def initialize(options = {})
  @options = options.except(:class).freeze
end