module Validations::ClassMethods

Attributes

validates[R]

Public Instance Methods

validate(variable, type, *conditional_value) click to toggle source
# File lib/moduls/validations.rb, line 12
def validate(variable, type, *conditional_value)
  @validates ||= []
  @validates << { variable: variable, type: type, conditional_value: conditional_value }
end