Fixes #12311 - Fix issue with failed initialization of rack openid middleware.
This fix is for rails4 but is backwards compatible with rails3
When placed in a rails initializer the rack middleware fails to load, throwing a can't modify frozen array error. Moving the initialization to the application config resolves this issue.
Related issues
Refactor #12311: Refactor rack openid middleware initialization to be both rails3 & 4 compatible
Fixes #12311 - Fix issue with failed initialization of rack openid middleware.
This fix is for rails4 but is backwards compatible with rails3
When placed in a rails initializer the rack middleware fails to
load, throwing a can't modify frozen array error. Moving the
initialization to the application config resolves this issue.