Sha256: 249fb7f793d55896b11d1edf01fcd7a279a6f6e7ea006e0dd9262b4f948e150d
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
class Gallery::Gallery < ActiveRecord::Base cms_is_categorized if defined?(ComfortableMexicanSofa) self.table_name = :gallery_galleries # -- Relationships -------------------------------------------------------- has_many :photos, :dependent => :destroy # -- Validations ---------------------------------------------------------- validates :title, :presence => true validates :identifier, :presence => true, :uniqueness => true, :format => { :with => /^\w[a-z0-9_-]*$/i } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comfy_gallery-0.1.3 | app/models/gallery/gallery.rb |
comfy_gallery-0.1.2 | app/models/gallery/gallery.rb |
comfy_gallery-0.1.1 | app/models/gallery/gallery.rb |