Skip to content

Instantly share code, notes, and snippets.

@nc
Created February 29, 2012 15:18
Show Gist options
  • Save nc/1941503 to your computer and use it in GitHub Desktop.
Save nc/1941503 to your computer and use it in GitHub Desktop.
module Foursquare
def self.table_name_prefix
'foursquare_'
end
def self.config_yml
yml = YAML.load File.open(Rails.root.join('config', 'foursquare.yml')).read
yml[Rails.env]
end
def self.key
config_yml["key"]
end
def self.secret
config_yml["secret"]
end
end
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment