lib/picky/indexers/serial.rb in picky-1.3.0 vs lib/picky/indexers/serial.rb in picky-1.3.1

- old
+ new

@@ -18,9 +18,17 @@ # def raise_no_source raise NoSourceSpecifiedException.new("No source given for #{@configuration.identifier}.") end + # Delegates the key format to the source. + # + # Default is to_i. + # + def key_format + @source.key_format || :to_i + end + # Selects the original id (indexed id) and a column to process. The column data is called "token". # # Note: Puts together the parts first in an array, then releasing the array from time to time by joining. # def index \ No newline at end of file