Sha256: 69ea5596e7772f78dce9a987bfdc45abc4b07fe9d534419c35072fa72c4b748e

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/setup/templates/remote_user.rb