How to set facebook authentication keys depending on environment?
I have a rails app which uses omniauth to authenticate visitors via facebook. When you register an app with facebook, you have to register a callback url which they will redirect to once they have completed their authentication process. Since my production site is hosted on a different server than my development environment, I need to register 2 different urls with Facebook. I've done this by registering two apps, a live one and a dev version. Now of course I have two app_ids and two app_secrets which my Rails application needs to use. How do I set OmniAuth to use one set of keys in the