Method: ActiveValidation::Verifier#version=
- Defined in:
- lib/active_validation/verifier.rb
#version=(other) ⇒ Object
83 84 85 86 |
# File 'lib/active_validation/verifier.rb', line 83 def version=(other) @version = versions.detect { |a| a == ActiveValidation::Values::Version.new(other) } or raise ArgumentError, "Version #{other} not found" end |