Displaying 1 result from an estimated 1 matches for "default_partitions".
2006 Jun 26
0
partitioned_id plugin
...of 12345678, a string "1234/5678" will be
returned.  
The default number of digits is 8, the default number
of partitions is 2, and 
the default separator is File::SEPARATOR.  You can
also set the following in your
rails environment.rb - 
Partitioned::Id::DEFAULT_DIGITS
Partitioned::Id::DEFAULT_PARTITIONS
Partitioned::Id::DEFAULT_SEPARATOR
You can also customize these defaults per model (see
example 2 below).
Finally, there is a partitioned_id helper for both
controllers and views which take 
at least one parameter an Id and then optionally an
options hash specifying the number
of digits, partitio...