Project

General

Profile

Actions

Bug #19422

closed

validates_lengths_from_database leaks validation options between models

Added by Ivan Necas almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Database
Target version:
-
Fixed in Releases:
Found in Releases:

Description

This leads to unexpected validatoin errors such as "OperatingsystemTest.test_: Operatingsystem should not allow :major to be ‹"111111"›."
in tests, depending on options of other ActiveRecord objects and order of their loading.

It hit us hard in remote_execution

Actions #1

Updated by Ivan Necas almost 7 years ago

  • Pull request https://github.com/rubiety/validates_lengths_from_database/pull/18 added
Actions #2

Updated by Dominic Cleal almost 7 years ago

  • Status changed from Ready For Testing to Resolved

Not a Foreman issue, changed in a gem.

Actions

Also available in: Atom PDF