Sha256: 3955b699863ae3614929ac2b1bc2368aa3f3fba39753e7e852e456282e495473

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

module EffectiveLogging
  module LogChangesUser

    # Add me to your ApplicationController
    # before_action :set_log_changes_user

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_logging-1.5.0 lib/effective_logging/log_changes_user.rb