Created
September 5, 2011 19:53
-
-
Save mjtko/1195774 to your computer and use it in GitHub Desktop.
Application wide token/secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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