search for: default_separator

Displaying 1 result from an estimated 1 matches for "default_separator".

2006 Jun 26
0
partitioned_id plugin
...8" 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, partitions, and/or separator to be used. G...