boissier_app/app/models/portlets/gallery_image.rb
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +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