Decompose EppSession#data

#700
This commit is contained in:
Artur Beljajev 2018-02-07 02:17:48 +02:00
parent ba341ee411
commit 940613ae34
8 changed files with 13 additions and 57 deletions

View file

@ -115,7 +115,7 @@ class EppController < ApplicationController
end
def current_user
@current_user ||= ApiUser.find_by_id(epp_session[:api_user_id])
@current_user ||= epp_session.user
# by default PaperTrail uses before filter and at that
# time current_user is not yet present
::PaperTrail.whodunnit = user_log_str(@current_user)