lib/sigiss/provider.rb in sigiss-0.1.0 vs lib/sigiss/provider.rb in sigiss-0.1.1

- old
+ new

@@ -1,16 +1,13 @@ -require 'lotus/validations' require 'sigiss/extension' module Sigiss class Provider - include Lotus::Validations + include ActiveModel::Validations include Sigiss::Extension attr_accessor :ccm, :cnpj, :senha, :crc, :crc_estado - validates :ccm, presence: true - validates :cnpj, presence: true - validates :senha, presence: true + validates_presence_of :ccm, :cnpj, :senha def initialize(attributes = {}) @ccm = attributes[:ccm] @cnpj = attributes[:cnpj] @senha = attributes[:senha]