lib/kpm.rb in killbill-kpm-ui-1.0.2 vs lib/kpm.rb in killbill-kpm-ui-2.0.0

- old
+ new

@@ -1,24 +1,24 @@ +# frozen_string_literal: true + require 'kpm/engine' module KPM - mattr_accessor :current_tenant_user mattr_accessor :layout - self.current_tenant_user = lambda { |session, user| + self.current_tenant_user = lambda { |_session, _user| { - :username => 'admin', - :password => 'password', - :session_id => nil, - :api_key => KillBillClient.api_key, - :api_secret => KillBillClient.api_secret + :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 || 'kpm/layouts/kpm_application', + :layout => layout || 'kpm/layouts/kpm_application' } end - end