search for: acts_as_partitioned_id

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

2006 Jun 26
0
partitioned_id plugin
...ash specifying the number of digits, partitions, and/or separator to be used. Giving credit where credit is due, this plugin was inspired by reading: http://www.37signals.com/svn/archives2/id_partitioning.php == Usage === Example 1 ==== Folder.rb model class Folder < ActiveRecord::Base acts_as_partitioned_id end ==== execute ruby script/console f = Folder.new # => #<Folder:......> f.save # => true f.id # => 1 f.partitioned_id # => "0000/0001" Folder.partitioned_id(123456)...