accescible_app/app/models/portlets/gallery_image.rb
Nicolas Bally d4484275e8 initial
2011-06-25 12:08:06 +02:00

8 lines
179 B
Ruby

# -*- encoding : utf-8 -*-
class GalleryImage < ActiveRecord::Base
belongs_to :image_file, :dependent => :destroy
belongs_to :gallery
validates :title, :presence => true
end