Sha256: 8edd7486d093df1ef2fa7cc36c26e09de4b0d015518c962d22e95c74243ae609
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
module Msip module Concerns module Models module Anexo extend ActiveSupport::Concern included do include Msip::Modelo self.table_name = 'msip_anexo' has_attached_file :adjunto, :path => Msip.ruta_anexos.to_s + "/:id_:filename" validates_attachment_content_type :adjunto, :content_type => ['text/plain', /.*/] validates_attachment_presence :adjunto validates :descripcion, presence: true, allow_blank: false, length: { maximum: 1500 } #validates :archivo, length: { maximum: 255 } validates :adjunto_file_name, length: { maximum: 255 } validates :adjunto_content_type, length: { maximum: 255 } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | lib/msip/concerns/models/anexo.rb |
msip-2.2.0.alfa2 | lib/msip/concerns/models/anexo.rb |
msip-2.2a2 | lib/msip/concerns/models/anexo.rb |