Sha256: 7c5e3a51a150ea37cbda1afe1a38c24458c142881882d05501ac4b7781680d4f

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

Paperclip.options[:log] = true
require 'paperclip_validator'

Paperclip.interpolates :mon_year do |attachment, style|
  attachment.instance.id.generation_time.strftime("%m%Y")
end

#This is a hack used to access Paperclip's internal cache
#of attributes it reads from the attachment. Used as part
#of the file renaming code.
class Paperclip::Attachment
  attr_accessor :_file_file_name
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slices-2.0.2 lib/slices/paperclip.rb
slices-2.0.1 lib/slices/paperclip.rb
slices-2.0.0 lib/slices/paperclip.rb
slices-1.0.5 lib/slices/paperclip.rb
slices-1.0.4 lib/slices/paperclip.rb
slices-1.0.3 lib/slices/paperclip.rb
slices-1.0.2 lib/slices/paperclip.rb
slices-1.0.1 lib/slices/paperclip.rb
slices-1.0.0 lib/slices/paperclip.rb