gallery/app/models/album_crop.rb

8 lines
193 B
Ruby
Raw Permalink Normal View History

class AlbumCrop
include Mongoid::Document
field :crop_x, type: String
field :crop_y, type: String
field :crop_w, type: String
field :crop_h, type: String
belongs_to :album_image
end