Skip to content

Instantly share code, notes, and snippets.

@benmacleod
Created October 16, 2013 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benmacleod/7003283 to your computer and use it in GitHub Desktop.
Save benmacleod/7003283 to your computer and use it in GitHub Desktop.
class Contact < ActiveResource::Base
self.site = 'http://localhost:3000/service/v1/'
self.user = (a = Account.find(1)).users.first.email
self.password = a.web_service_key
end
c = Contact.find 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment