Skip to content

Not using passed configuration options in Rails #3

@nogweii

Description

@nogweii

I'm getting a weird issue. When I add

    config.middleware.use BrowserID::Provider, :server_name      => "fish-eye.heroku.com",
                                               :login_path       => "/masq/login",
                                               :provision_path   => "/browser-id/provision",
                                               :certify_path     => "/browser-id/certify",
                                               :whoami_path      => "/browser-id/whoami",
                                               :jquery_path      => "/assets/javascripts/jquery.js",
                                               :private_key_path => "config/browserid_provider.pem",
                                               :browserid_url    => "login.persona.org"

to my application's config/applicaiton.rb, no settings are preserved. Monkeypatching BrowserID::Config.initialize, it seems it's being called twice. Once with my settings, but once again afterwards with an empty hash, reseting all the values to their defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions