Sha256: 92ab6f76a48bc58f616ae4604f38601d073d5106713ef67aeb683af2543c24aa

Contents?: true

Size: 673 Bytes

Versions: 12

Compression:

Stored size: 673 Bytes

Contents

# frozen_string_literal: true

# Historiographer::Silent is intended to be used to migrate an existing model
# to Historiographer, not as a long-term solution.
#
# Historiographer will throw an error if a model is saved without a user present,
# unless you explicitly call save_without_history.
#
# Historiographer::Silent will not throw an error, and will not produce a Rollbar
#
module Historiographer
  module Silent
    extend ActiveSupport::Concern

    included do
      include Historiographer

      def should_validate_history_user_id_present?
        false
      end

      private

      def history_user_absent_action
        # noop
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
historiographer-4.1.8 lib/historiographer/silent.rb
historiographer-4.1.7 lib/historiographer/silent.rb
historiographer-4.1.5 lib/historiographer/silent.rb
historiographer-4.1.4 lib/historiographer/silent.rb
historiographer-4.1.3 lib/historiographer/silent.rb
historiographer-4.1.2 lib/historiographer/silent.rb
historiographer-4.1.1 lib/historiographer/silent.rb
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/lib/historiographer/silent.rb
historiographer-4.0.0 lib/historiographer/silent.rb
historiographer-3.1.2 lib/historiographer/silent.rb
historiographer-3.1.1 lib/historiographer/silent.rb
historiographer-3.1.0 lib/historiographer/silent.rb