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, = {}) validations << { attribute: attribute, options: } end |
#validations ⇒ Object
28 29 30 |
# File 'lib/doorkeeper/validations.rb', line 28 def validations @validations ||= [] end |