Skip to content

Instantly share code, notes, and snippets.

@sruli
Created December 11, 2012 18:36
Show Gist options
  • Save sruli/4260912 to your computer and use it in GitHub Desktop.
Save sruli/4260912 to your computer and use it in GitHub Desktop.
def contact_klass
options = YAML.load_file("#{RAILS_ROOT}/config/databasedotcom.yml")
client = Databasedotcom::Client.new(options[Rails.env])
client.authenticate(:token => token, :instance_url => instance_url)
client.materialize("Contact")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment