def user_for_models_auditor
      user =
        case
          when defined?(current_user)
            current_user
          when defined?(current_employee)
            current_employee
          else
            return
        end
      ActiveSupport::VERSION::MAJOR >= 4 ? user.try!(:id) : user.try(:id)
    rescue NoMethodError
      user
    end
def user_for_models_auditor
      user =
        case
          when defined?(current_user)
            current_user
          when defined?(current_employee)
            current_employee
          else
            return
        end
      ActiveSupport::VERSION::MAJOR >= 4 ? user.try!(:id) : user.try(:id)
    rescue NoMethodError
      user
    end
Returns the user who is responsible for any changes that occur.
 By default this calls `current_user` or `current_employee` and returns the result.

 Override this method in your controller to call a different
 method, e.g. `current_person`, or anything you like.