<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -131,11 +131,14 @@ and are required to complete the configuration.
 Add the twitter application key and consumer secret as operating system environment variables
 (TWOAUTH_KEY and TWOAUTH_SECRET respectively).
 
+Set your callback URL as operating system environment variable (TWOAUTH_CALLBACK).
+ 
 Alternatively, you can edit config/environment.rb to set these directly.
 
 If you are using heroku, add the environment keys using the heroky utility (gem):
 
-	heroku config:add TWOAUTH_KEY=8N029N81 TWOAUTH_SECRET=9s83109d3+583493190
+	heroku config:add TWOAUTH_KEY=8N029N81 TWOAUTH_SECRET=9s83109d3+583493190 TWOAUTH_CALLBACK=http://rails-twitter-oauth-sample.heroku.com/members/callback
+	
 
 == 11. Testing the application locally
 
@@ -144,7 +147,7 @@ e.g. http://rails-twitter-oauth-sample.heroku.com/members/callback
 
 This is the address that twitter sends users back to after the twitter authentication step.
 
-To test on a local development machine (not known on the web/in DNS) as the domain name in the callback,
+To test on a local development machine (not known on the web/in DNS as the domain name in the callback),
 you can simply add the registered domain to your hosts file (aliasing localhost) e.g.
 
 	127.0.0.1       rails-twitter-oauth-sample.heroku.com</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -76,7 +76,8 @@ Rails::Initializer.run do |config|
   
 	# Twitter OAuth settings
 	TWOAUTH_SITE = 'http://twitter.com'
-	TWOAUTH_CALLBACK = 'http://rails-twitter-oauth-sample.heroku.com/members/callback'
+	# Twitter OAuth callback default
+	TWOAUTH_CALLBACK = ENV['TWOAUTH_CALLBACK']
 	# Twitter OAuth Consumer key
 	TWOAUTH_KEY = ENV['TWOAUTH_KEY']
 	# Twitter OAuth Consumer secret</diff>
      <filename>config/environment.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5441bcf8ecf0acc278a8fc1b3a5d178222e20eb8</id>
    </parent>
  </parents>
  <author>
    <name>tardate</name>
    <email>gallagher.paul@gmail.com</email>
  </author>
  <url>http://github.com/tardate/rails-twitter-oauth-sample/commit/ec955200bf8efde130fc35cc84a2da762bf6c7ed</url>
  <id>ec955200bf8efde130fc35cc84a2da762bf6c7ed</id>
  <committed-date>2009-08-13T01:18:31-07:00</committed-date>
  <authored-date>2009-08-13T01:18:31-07:00</authored-date>
  <message>changed callback url to be an environment setting</message>
  <tree>ac1e57ea406980ed8bca3268e00c3c583503c6ed</tree>
  <committer>
    <name>tardate</name>
    <email>gallagher.paul@gmail.com</email>
  </committer>
</commit>
