lib/fluffery/forms/validation/validators.rb in fluffery-0.0.2 vs lib/fluffery/forms/validation/validators.rb in fluffery-0.0.3
- old
+ new
@@ -9,10 +9,10 @@
end
end
class Pattern < Fluffery::Forms::Validation::Base
def self.create(attribute, options, matcher)
- options.reverse_merge!('pattern' => matcher.inspect) unless matcher.nil?
+ options.reverse_merge!('pattern' => matcher.source) unless matcher.nil?
options
end
end
end
\ No newline at end of file