Whodunnit helper to distinguish user from epp_user

This commit is contained in:
Andres Keskküla 2014-10-01 15:06:37 +03:00
parent af97dadfca
commit b5608c1394
6 changed files with 23 additions and 5 deletions

View file

@ -3,6 +3,7 @@ class Epp::CommandsController < ApplicationController
include Epp::DomainsHelper
include Epp::ContactsHelper
include Shared::UserStamper
helper WhodunnitHelper
layout false
@ -35,4 +36,8 @@ class Epp::CommandsController < ApplicationController
def update
send("update_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def user_for_paper_trail
current_epp_user ? "#{current_epp_user.id}-EppUser" : nil
end
end