Sha256: 3b4d10b932bb2714fd66cad77727b81101a17554cd3514489f5e73173e90fe4f

Contents?: true

Size: 309 Bytes

Versions: 22

Compression:

Stored size: 309 Bytes

Contents

module EffectiveLogging
  module SetCurrentUser
    module ActionController

      # Add me to your ApplicationController
      # before_action :set_effective_logging_current_user

      def set_effective_logging_current_user
        EffectiveLogging.current_user = current_user
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
effective_logging-2.0.1 lib/effective_logging/set_current_user.rb
effective_logging-2.0.0 lib/effective_logging/set_current_user.rb