lib/auth_lh/api.rb in auth-lh-0.18.0 vs lib/auth_lh/api.rb in auth-lh-0.18.1

- old
+ new

@@ -32,11 +32,11 @@ def self.get_roles results = get_request('/api/roles') results.map { |r| Role.new(r) } end - def self.get_role(code) - Role.new(get_request("/api/roles/#{CGI::escape(code)}")) + def self.get_role(role_id) + Role.new(get_request("/api/roles/#{role_id}")) end def self.get_current_user(session_token, remote_ip, return_url=nil) result = get_request '/api/current_user', { app_code: @application_code,