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