lib/schematic/generator/restrictions/custom.rb in schematic-0.6.2 vs lib/schematic/generator/restrictions/custom.rb in schematic-0.7.0

- old
+ new

@@ -1,19 +1,20 @@ +require 'schematic/generator/restrictions/base' + module Schematic module Generator module Restrictions class Custom < Base def generate(builder) validators_for_column.each do |validator| if validator.respond_to?(:xsd_pattern_restrictions) validator.xsd_pattern_restrictions.each do |restriction| - builder.xs(:pattern, "value" => restriction.is_a?(Regexp) ? restriction.source : restriction) + builder.xs(:pattern, 'value' => restriction.is_a?(Regexp) ? restriction.source : restriction) end return end end end end end end end -