[Facebooker-talk] loading settings from database
Jonathan Otto
jonathan.otto at gmail.com
Wed Apr 2 22:47:11 EDT 2008
You'll probably have to modify the plugin, at least
Facebooker::Session since right now the API key is loaded once at
plugin initialization, and if you're running more than 1 app, you'll
need to signal some way to indicate which keys to load.
One way to do this is to check for parameters in Application.rb with a
before_filter and set a new variable in the Facebooker::Session class.
Keep us updated on your progress, this would be a great contribution.
On Wed, Apr 2, 2008 at 8:23 PM, Toby Hede <tobyhede at info-architects.net> wrote:
> I'm just wondering what the best way to go about loading my API keys
> from the database is ...
>
> Should I simply place them in the ENV variable?
>
> Is there a way better way to go about this?
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
More information about the Facebooker-talk
mailing list