lib/avatax.rb in killbill-avatax-2.0.0 vs lib/avatax.rb in killbill-avatax-2.1.0
- old
+ new
@@ -1,22 +1,22 @@
+# frozen_string_literal: true
+
require 'avatax/engine'
module Avatax
-
mattr_accessor :current_tenant_user
mattr_accessor :layout
- self.current_tenant_user = lambda { |session, user|
- {:username => 'admin',
- :password => 'password',
- :session_id => nil,
- :api_key => KillBillClient.api_key,
- :api_secret => KillBillClient.api_secret}
+ self.current_tenant_user = lambda { |_session, _user|
+ { username: 'admin',
+ password: 'password',
+ session_id: nil,
+ api_key: KillBillClient.api_key,
+ api_secret: KillBillClient.api_secret }
}
- def self.config(&block)
+ def self.config
{
- :layout => layout || 'avatax/layouts/avatax_application',
+ layout: layout || 'avatax/layouts/avatax_application'
}
end
-
end