Sha256: f9116f4da7941fffc54d30e0b00cda8ff04b4de7aaa78a229bde5ed168657c83
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
module Msip class Respaldo7z include ActiveModel::Model attr_accessor :clave7z validates :clave7z, presence: true, confirmation: true, format: { with: /\A[-A-Za-z0-9{}*.,:;+@^~<>#_!$%&()=?]*\z/, message: 'sólo letras, dígitos y los siguientes caracteres especiales -{}*.,:;+@^~<>#_!$%&()=?' } validates :clave7z_confirmation, presence: true validate :existe_7z def existe_7z if Msip::TareasrakeHelper.which('7z').nil? errors[:base] << 'No se encontró el programa 7z en el servidor' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | app/models/msip/respaldo7z.rb |
msip-2.2.0.alfa2 | app/models/msip/respaldo7z.rb |
msip-2.2a2 | app/models/msip/respaldo7z.rb |