class method
self.new
Ruby on Rails 3.0.20
Since v3.0.20Signature
self.new(options)
Accepts options that will be made available through the options reader.
Parameters
-
optionsreq
Source
# File activemodel/lib/active_model/validator.rb, line 113
def initialize(options)
@options = options.freeze
end
Defined in activemodel/lib/active_model/validator.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validator