Created
April 25, 2009 19:48
-
-
Save mattapayne/101733 to your computer and use it in GitHub Desktop.
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
#For Rails: | |
#in an initializer | |
JamBase4R.configure do |c| | |
c.api_key = "your JamBase API key" #this is mandatory | |
c.logger = RAILS_DEFAULT_LOGGER #or any class that implements the same interface (optional) | |
end | |
#For Sinatra | |
#within the main application file | |
configure do | |
JamBase4R.configure do |c| | |
c.api_key = "your JamBase API key" #this is mandatory | |
c.logger = MySinatraLogger.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment