Sha256: 7ad1301218052c2b43768097f0738cf0e166080a683d747aa21c59164924a269

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

class Attachment < ActiveRecord::Base
  validates_presence_of :file, :page_id
  belongs_to :page

  has_attached_file :file,
      :storage => :s3,
      :s3_credentials => "#{Rails.root}/config/amazon_s3.yml",
      :path => "/users/:file_owner_id/pages/:file_page_id/attachments/:filename"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wheels-0.1.30 app/models/attachment.rb