Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
-
#id_partition ⇒ Object
the id of mongoid is not integer, correct the id_partitioin.
Instance Method Details
#id_partition ⇒ Object
the id of mongoid is not integer, correct the id_partitioin.
12 13 14 |
# File 'lib/mongoid_paperclip.rb', line 12 Paperclip.interpolates :id_partition do |, style| .instance.id.to_s.scan(/.{4}/).join("/") end |