Sha256: 8b5a408ceaa46b6c6519d7db4cf796064903b6e50c49bde36bf255cdd399dca2

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

class RemoteUser < ActiveResource::Base
  self.site = Rails.application.config.respond_to?(:remote_sso_url) ? Rails.application.config.remote_sso_url : "http://localhost:3000"
  self.element_name = "user"
  self.headers['X-SERVICE-TOKEN'] =  Rails.application.config.respond_to?(:remote_token) ? Rails.application.config.remote_token : 'be happy'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resty-generators-0.7.2 lib/generators/resty/setup/templates/remote_user.rb~
resty-generators-0.7.1 lib/generators/resty/setup/templates/remote_user.rb~