Testing a conditional validation with remarkable
I have a rails model with this validation: validates_numericality_of(:insert_oz, :allow_blank=>true, :greater_than=>0, :if=>(proc do |note| !note.insert_pages.nil? && note.inser...
I have a rails model with this validation: validates_numericality_of(:insert_oz, :allow_blank=>true, :greater_than=>0, :if=>(proc do |note| !note.insert_pages.nil? && note.inser...