Top Level Namespace

Defined Under Namespace

Modules: Dynamoid

Instance Method Summary collapse

Instance Method Details

#id_partitionObject

The id of dynamoid is not integer, so correct the id_partition.



21
22
23
# File 'lib/dynamoid/paperclip.rb', line 21

Paperclip.interpolates :id_partition do |attachment, style|
  attachment.instance.id.to_s.scan(/.{4}/).join("/")
end