Class: Attachment
- Inherits:
-
Versions::SharedAttachment
- Object
- Versions::SharedAttachment
- Attachment
- Defined in:
- app/models/attachment.rb
Instance Method Summary collapse
Instance Method Details
#filepath(format = nil) ⇒ Object
7 8 9 10 |
# File 'app/models/attachment.rb', line 7 def filepath(format=nil) mode = format ? (format[:size] == :keep ? 'full' : format[:name]) : 'full' "#{SITES_ROOT}#{current_site.data_path}/#{mode}/#{super()}" end |