Sha256: f7898607ac2d946ef86b5d4f948fd8f85d178a581a70c60892ef8ad0b0f5c839

Contents?: true

Size: 274 Bytes

Versions: 21

Compression:

Stored size: 274 Bytes

Contents

module MyForum
  class Attachment < Image
    belongs_to :user, class_name: 'MyForum::User'
    belongs_to :post, class_name: 'MyForum::Post'

    UPLOAD_PATH = File.join(Rails.public_path, 'uploads', 'attachments')
    URL  = File.join('/uploads', 'attachments')
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta26 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta25 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta24 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta23 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta22 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta21 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta20 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta19 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta18 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta17 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta16 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta15 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta14 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta13 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta12 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta11 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta10 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta9 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta8 app/models/my_forum/attachment.rb
my_forum-0.0.1.beta7 app/models/my_forum/attachment.rb