Sha256: ce344a56b8e1b8330b71afa47e77601af843b01ba636c67cf19b4a1a650cbc61

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

class ValidationErrors < ActiveRecord::Base
  def self.track: (untyped invalid_model) -> untyped

  module Trackable
    def self.included: (untyped base) -> untyped

    # :nodoc:
    module ClassMethods
      def track_validation_errors: () -> untyped
    end

    module InstanceMethods
      def save: (**untyped options) -> untyped

      # Attempts to save the record just like {ActiveRecord::Base#save}[rdoc-ref:Base#save] but
      # will raise an ActiveRecord::RecordInvalid exception instead of returning +false+ if the record is not valid.
      def save!: (**untyped options) -> untyped
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
validation_errors-0.3.0 sig/lib/validation_errors.rbs
validation_errors-0.2.0 sig/lib/validation_errors.rbs
validation_errors-0.1.0 sig/lib/validation_errors.rbs