lib/whyvalidationssuckin96/attribute_based_validation.rb
# The value of the attribute to validate against
The value of the attribute to validate against
The value of the attribute to validate against
def attribute_value
      if options[:array]
        validatable.send(options[:attribute])[@pos]
      else
        validatable.send(options[:attribute])
      end
    end
def attribute_value if options [ :array ] validatable . send ( options [ :attribute ] ) [ @pos ] else validatable . send ( options [ :attribute ] ) end end
The value of the attribute to validate against
The value of the attribute to validate against