Sha256: 87ffd4f005f7d954fc77c1e03641f67878e25ebdf00bc04dda0aca297afd8a1c

Contents?: true

Size: 251 Bytes

Versions: 7

Compression:

Stored size: 251 Bytes

Contents

class AlbumPhoto < ActiveRecord::Base
  attr_accessible :photo
  belongs_to :album_photoable, polymorphic: true
  has_attached_file :photo, :styles => { :medium => "300x300>", :thumb => "100x100>" }, url: "/system/:attachment/:id/:style/:filename"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_gallery-0.3.0.6 app/models/album_photo.rb
ruby_gallery-0.3.0.4 app/models/album_photo.rb
ruby_gallery-0.3.0.3 app/models/album_photo.rb
ruby_gallery-0.3.0.2 app/models/album_photo.rb
ruby_gallery-0.3.0.1 app/models/album_photo.rb
ruby_gallery-0.3.0 app/models/album_photo.rb
ruby_gallery-0.2.9 app/models/album_photo.rb