<div dir="ltr">Hey John,<br><br>I am not sure I totally understand your needs but I think that the change you offer breaks the ability to have multiple apps running in the same instance. So for example I could have a YML file with this<br>
<br> api_key: e2604538a315f1d472dc20213ffa548e<br> secret_key: SECRET<br> canvas_page_name: meemclou<br> callback_url: <a href="http://localhost:3000">http://localhost:3000</a><br> foo_api_key: SOMEOTHERAPIKEY<br> foo_secret_key: SECRET<br>
foo_canvas_page_name: supermeemcloud<br> foo_callback_url: <a href="http://localhost:3000">http://localhost:3000</a><br> foo_adapter: FacebookAdapter<br><br><br>And then the rails app can suport both meemcloud and supermeemcloud.<br>
<br>Or said more simply the config_key_base does not need to equal the class name prefix of the adapter.<br><br>Let me know specifically what you are trying to accomplish and maybe I can help.<br><br>Dave<br><br><br><br><div class="gmail_quote">
On Wed, Aug 13, 2008 at 12:15 AM, Jonathan Otto <span dir="ltr"><<a href="mailto:jonathan.otto@gmail.com">jonathan.otto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The load_adapter method is sent the value(config_key_base) of the<br>
adapter you want to load, so instead of using a regexp to match, why<br>
not just use the config_key_base value like so? The problem with the<br>
current method is that in situations where multiple apps share the<br>
same API key, this code will be unable to select the correct adapter.<br>
Though this situation seems uncommon, the earlier versions of Ringside<br>
behave this way (the same app on many social networks must share the<br>
same API key).<br>
<br>
<a href="http://pastebin.com/f2c2e58b6" target="_blank">http://pastebin.com/f2c2e58b6</a><br>
<br>
Let me know if the above fix breaks anything else that code was intended to do.<br>
_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
</blockquote></div><br></div>