Top Level Namespace

Defined Under Namespace

Modules: MetricsApi, Mongoid, Paperclip, Stylesheets, Sunspot, SupplejackApi, Utils Classes: UrlValidator

Instance Method Summary collapse

Instance Method Details

#id_partitionObject

the id of mongoid is not integer, correct the id_partitioin.


25
26
27
# File 'lib/mongoid/paperclip.rb', line 25

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