Sha256: 3fa12e41a2d597d8c60299a25a671a3d6fb47ec326e2f424f16294ffdcf74574

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

module EffectiveLogging
  module LogChangesUser

    # Add me to your ApplicationController
    # before_action :set_effective_logging_current_user

    def set_effective_logging_current_user
      if respond_to?(:current_user)
        EffectiveLogging.current_user = current_user
      else
        raise "(effective_logging) set_effective_logging_current_user expects a current_user() method to be available"
      end
    end

    def set_log_changes_user
      # No longer need to call this
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_logging-1.7.1 lib/effective_logging/log_changes_user.rb
effective_logging-1.7.0 lib/effective_logging/log_changes_user.rb