app/controllers/avatax/engine_controller.rb in killbill-avatax-2.0.0 vs app/controllers/avatax/engine_controller.rb in killbill-avatax-2.1.0
- old
+ new
@@ -1,8 +1,9 @@
+# frozen_string_literal: true
+
module Avatax
class EngineController < ApplicationController
-
layout :get_layout
def get_layout
layout ||= Avatax.config[:layout]
end
@@ -11,8 +12,7 @@
# If the rails application on which that engine is mounted defines such method (Devise), we extract the current user,
# if not we default to nil, and serve our static mock configuration
user = current_user if respond_to?(:current_user)
Avatax.current_tenant_user.call(session, user)
end
-
end
end