test/dummy/config/initializers/tim.rb in tim-0.2.0 vs test/dummy/config/initializers/tim.rb in tim-0.3.0
- old
+ new
@@ -1,8 +1,16 @@
Tim.user_class = "User"
Tim.provider_account_class = "ProviderAccount"
Tim.provider_type_class = "ProviderType"
+
# Image Factory URL
Tim::ImageFactory::Base.site = "http://localhost:8075/imagefactory"
+
+# Example OAuth Configuration
+#oauth_config = {:consumer_key => "mock-key",
+# :consumer_secret => "mock-secret",
+# :site => "http://localhost:8075/imagefactory/"}#
+#Tim::ImageFactory::Base.config = oauth_config
+
# FIXME: We should be able to infer these from Routes
Tim::ImageFactory::TargetImage.callback_url = "http://localhost:3000/tim/target_images/"
Tim::ImageFactory::ProviderImage.callback_url = "http://localhost:3000/tim/provider_images/"
\ No newline at end of file