lib/key_vortex.rb in key-vortex-0.1.4 vs lib/key_vortex.rb in key-vortex-0.2.0

- old
+ new

@@ -8,10 +8,10 @@ def initialize(adapter, record_class) @adapter = adapter @record_class = record_class record_class.fields.each do |field| - next unless field.prohibited_by?(adapter) + next if field.within?(adapter) raise KeyVortex::Error, "#{adapter.class} can only handle field #{field.name} with these limitations:\n" + adapter.limitation_for(field).to_s + "\n\nThe following record violates these limitations:\n#{field.limitation}"