Sha256: 02365e18cb0574bb1cde1c03b924aea4ace8eeaea3d509c0b2c35bfbcf3c2b4b

Contents?: true

Size: 271 Bytes

Versions: 56

Compression:

Stored size: 271 Bytes

Contents

module Tenon
  class Photo < ActiveRecord::Base
    belongs_to :gallery, class_name: 'Gallery', foreign_key: 'gallery_id', inverse_of: :photos
    has_asset :file, styles: { original: '800x800>', thumbnail: '300x300#' }
    default_scope { order(:list_order) }
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
tenon-1.0.56 app/models/tenon/photo.rb
tenon-1.0.55 app/models/tenon/photo.rb
tenon-1.0.54 app/models/tenon/photo.rb
tenon-1.0.53 app/models/tenon/photo.rb
tenon-1.0.52 app/models/tenon/photo.rb
tenon-1.0.51 app/models/tenon/photo.rb
tenon-1.0.50 app/models/tenon/photo.rb
tenon-1.0.49 app/models/tenon/photo.rb
tenon-1.0.48 app/models/tenon/photo.rb
tenon-1.0.47 app/models/tenon/photo.rb
tenon-1.0.46 app/models/tenon/photo.rb
tenon-1.0.45 app/models/tenon/photo.rb
tenon-1.0.44 app/models/tenon/photo.rb
tenon-1.0.43 app/models/tenon/photo.rb
tenon-1.0.42 app/models/tenon/photo.rb
tenon-1.0.41 app/models/tenon/photo.rb
tenon-1.0.40 app/models/tenon/photo.rb
tenon-1.0.39 app/models/tenon/photo.rb
tenon-1.0.38 app/models/tenon/photo.rb
tenon-1.0.37 app/models/tenon/photo.rb