lib/mongoid/token/options.rb in mongoid_token-2.1.1 vs lib/mongoid/token/options.rb in mongoid_token-2.1.2

- old
+ new

@@ -41,9 +41,13 @@ "%d1,#{@options[:length]}" when :fixed_numeric "%d#{@options[:length]}" when :fixed_numeric_no_leading_zeros "%D#{@options[:length]}" + when :fixed_hex_numeric + "%h#{@options[:length]}" + when :fixed_hex_numeric_no_leading_zeros + "%H#{@options[:length]}" end end private def validate_options(options)