Skip to content

Commit

Permalink
resolving file attachment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion94 committed Jan 24, 2013
1 parent 000ea1f commit d3131dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/attachment.rb
Expand Up @@ -4,6 +4,7 @@ class Attachment < ActiveRecord::Base
belongs_to :channel
belongs_to :user

=begin
has_attached_file(:file, {
:storage => :s3,
:s3_credentials => {
Expand All @@ -15,7 +16,9 @@ class Attachment < ActiveRecord::Base
:url => "/:attachment/:id/:style/:basename.:extension",
:path => "#{ENV['S3_PREFIX']}/:attachment/:id/:style/:basename.:extension"
})
=end

has_attached_file :file
attr_accessible :file

def url
Expand Down

0 comments on commit d3131dd

Please sign in to comment.