seminar/custom_gallery/app/models/custom_album_crop.rb

8 lines
206 B
Ruby

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