lib/vindetta/vin.rb in vindetta-0.6.0 vs lib/vindetta/vin.rb in vindetta-0.7.0

- old
+ new

@@ -1,15 +1,13 @@ require 'active_support' require 'active_model' module Vindetta class Vin - LENGTH = 17 - attr_reader :value include ActiveModel::Validations - validates_length_of :value, is: LENGTH + validates_with Validator def initialize(value) @value = value end end