search for: main_attachment_id

Displaying 1 result from an estimated 1 matches for "main_attachment_id".

2007 Sep 18
2
Making attachment_fu polymorphic
...kung''s public_filename. def public_filename(thumbnail = nil) if path_prefix != "" path_prefix.gsub!(''public'','''') if path_prefix.include? (''public'') path_prefix + ''/'' + ("%08d" % main_attachment_id).scan(/..../).map{|e|e.to_s + ''/''}.to_s + filename else begin Technoweenie::AttachmentFu::Backends::S3Backend::s3_url rescue NoMethodError raise ''Attachment has a bad path, please delete it and upload it again'' end...