Sha256: 50ef523d7f017a61968af72040ee283de8c883abecd9eacf27a85e7e86e9327f

Contents?: true

Size: 403 Bytes

Versions: 10

Compression:

Stored size: 403 Bytes

Contents

module EffectiveLogging
  module LogChangesUser

    # Add me to your ApplicationController
    # before_action :set_log_changes_user

    def set_log_changes_user
      if respond_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

10 entries across 10 versions & 1 rubygems

Version Path
effective_logging-1.6.0 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.9 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.8 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.7 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.6 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.5 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.4 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.3 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.2 lib/effective_logging/log_changes_user.rb
effective_logging-1.5.1 lib/effective_logging/log_changes_user.rb