Sha256: aae5e61e4dd956814f7e37716c6cca9616fdce2db6913dfff4d6f5b457f1098f

Contents?: true

Size: 194 Bytes

Versions: 6

Compression:

Stored size: 194 Bytes

Contents

module Acfs::Model

  #
  #
  module Validation

    def save!(*_)
      raise ::Acfs::InvalidResource.new resource: self, errors: errors.to_a unless valid? :save

      super
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acfs-0.21.0.b185 lib/acfs/model/validation.rb
acfs-0.20.0.dev.b184 lib/acfs/model/validation.rb
acfs-0.21.0 lib/acfs/model/validation.rb
acfs-0.20.0.dev.b183 lib/acfs/model/validation.rb
acfs-0.20.0.dev.b182 lib/acfs/model/validation.rb
acfs-0.20.0.dev.b181 lib/acfs/model/validation.rb