Class: ThreadSafeUniquenessRecord::UniquenessValidationError
- Inherits:
-
Object
- Object
- ThreadSafeUniquenessRecord::UniquenessValidationError
- Defined in:
- lib/thread_safe_uniqueness_record.rb
Class Method Summary collapse
Class Method Details
.===(exception) ⇒ Object
10 11 12 13 |
# File 'lib/thread_safe_uniqueness_record.rb', line 10 def self.===(exception) exception.is_a?(ActiveRecord::RecordInvalid) && /Validation failed:.+\btaken\b/.match?(exception.) end |