Sha256: 7cf50642b3bd86b326a9bf3d4d50ebe5f0752f7bbc57b1d2c717e416df1a7277

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

class CmsUploadDir < ActiveRecord::Base
  belongs_to :cms_site
  belongs_to :cms_user
  has_many :cms_uploads,  :dependent => :destroy

  validates :label,
    :presence   => true,
    :uniqueness => true,
    :format     => { :with => /^[^\<\>\/\*\\\? ]*$/ }

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lucy_cms-0.0.6 app/models/cms_upload_dir.rb
lucy_cms-0.0.5 app/models/cms_upload_dir.rb
lucy_cms-0.0.4 app/models/cms_upload_dir.rb
lucy_cms-0.0.3 app/models/cms_upload_dir.rb
lucy_cms-0.0.2 app/models/cms_upload_dir.rb
lucy_cms-0.0.1 app/models/cms_upload_dir.rb