Logging fixed. Debugging finished.
This commit is contained in:
parent
bc7541a2c9
commit
b6dee6b93c
4 changed files with 4 additions and 16 deletions
|
|
@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
|
|||
# Do not mention passwords in the log file
|
||||
# filter_parameter_logging :password
|
||||
|
||||
before_action :moderate_packages, :get_ip
|
||||
before_action :moderate_packages
|
||||
|
||||
private
|
||||
|
||||
|
|
@ -28,9 +28,4 @@ class ApplicationController < ActionController::Base
|
|||
def after_sign_out_path_for(resource_or_scope)
|
||||
root_path
|
||||
end
|
||||
|
||||
# Get the visitor's IP address to make it accessible to the Log model
|
||||
def get_ip
|
||||
@remote_ip = request.remote_ip
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue