Skip to content

Instantly share code, notes, and snippets.

@mjtko
Created September 5, 2011 19:53
Show Gist options
  • Save mjtko/1195774 to your computer and use it in GitHub Desktop.
Save mjtko/1195774 to your computer and use it in GitHub Desktop.
Application wide token/secret
module LinkedSecrets
class << self
def token
"XXXX"
end
def secret
"YYYY"
end
end
end
WwdMongo::Application.config.linkedin.token = LinkedSecrets.token
# assuming the following line based on what you pasted on IRC :-)
WwdMongo::Application.config.linkedin.secret = LinkedSecrets.secret
# You should be able to refer to LinkedSecrets.token and LinkedSecrets.secret wherever else you need to throughout your application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment