def param_for_validation?(name)
      if respond_to?(name)
        !send(name).nil?
      else
        !param_before_type_cast(name).nil?
      end
    end
def param_for_validation?(name)
      if respond_to?(name)
        !send(name).nil?
      else
        !param_before_type_cast(name).nil?
      end
    end
def param_for_validation? ( name ) if respond_to? ( name ) ! send ( name ) . nil? else ! param_before_type_cast ( name ) . nil? end end
Validation
 We want to validate an attribute if its
 uncoerced value is not nil
Validation We want to validate an attribute if its uncoerced value is not nil