Class: Paperdragon::Paperclip::Uid::IdPartition

Inherits:
Object
  • Object
show all
Defined in:
lib/paperdragon/paperclip.rb

Class Method Summary collapse

Class Method Details

.call(id) ⇒ Object



47
48
49
# File 'lib/paperdragon/paperclip.rb', line 47

def self.call(id)
  ("%09d" % id).scan(/\d{3}/).join("/") # FIXME: only works with integers.
end