lib/sqlserver/sequence.rb in sqlserver-sequence-0.1.1 vs lib/sqlserver/sequence.rb in sqlserver-sequence-0.2.0

- old
+ new

@@ -35,10 +35,10 @@ sequences.each do |field, options| name = options[:name] prefix = options[:prefix] format = options[:format] - value = next_sequence_value(name) + value = next_sequence_value(name).to_s value = format.call(value) if format.respond_to?(:call) send "#{field}=", [prefix, value].join end end end