class DisiidUser::RemoteUser

Class RemoteUser interact with remote server to get user information: personal data and roles active resource

Useful settings:

- DisiidUser::RemoteUser.format = format
- ActiveSupport.parse_json_times = true

ROLES defined here must be EQUAL with the one defined remote Class self.site

Protected Instance Methods

element_path(options = nil) click to toggle source

Redefined method from Base class: we need to add auth_token suffix to the request params

# File lib/disiid_user.rb, line 193
def element_path(options = nil)
  auth = { :auth_token => self.class.auth_token }
  self.class.element_path(to_param, (options || prefix_options || {}).merge(auth))
end