Bug Fix: Configuration has to happen in before_initialize block for railtie