seminar2/custom_gallery/app/models/custom_album_crop.rb

8 lines
206 B
Ruby
Raw Normal View History

class CustomAlbumCrop
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 :custom_album_image
end