Module: Doorkeeper::Validations::ClassMethods

Defined in:
lib/doorkeeper/validations.rb

Instance Method Summary collapse

Instance Method Details

#validate(attribute, options = {}) ⇒ Object



24
25
26
# File 'lib/doorkeeper/validations.rb', line 24

def validate(attribute, options = {})
  validations << { attribute: attribute, options: options }
end

#validationsObject



28
29
30
# File 'lib/doorkeeper/validations.rb', line 28

def validations
  @validations ||= []
end