validates_numericality_of is run for a nil field

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      So, I have...

        field :total, type: Float
        validates_numericality_of :total, :greater_than => 0, :allow_nil => true
      

      When I pass a nil value, the validation is run and marks the object as invalid.

              Assignee:
              Unassigned
              Reporter:
              Eugene Mirkin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: