Module: Doorkeeper::Validations::ClassMethods

Defined in:
lib/doorkeeper/validations.rb

Instance Method Summary collapse

Instance Method Details

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


21
22
23
# File 'lib/doorkeeper/validations.rb', line 21

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

#validationsObject


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

def validations
  @validations ||= []
end