Sha256: c9b1f979f7b8d3e4dfff72979648adca4f10f75e9b21f32a302844c4916310d9

Contents?: true

Size: 219 Bytes

Versions: 2

Compression:

Stored size: 219 Bytes

Contents

class Document < ActiveRecord::Base
  
  has_attached_file :doc
  validates_attachment_presence :doc, :message => I18n.t('activerecord.errors.models.document.attributes.doc.blank')
  validates_presence_of :title
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 app/models/document.rb
merrycms-0.1.4 app/models/document.rb