jrallison / rollout_ui

RolloutUI: A slick way to rollout features in your web app.
MIT License
137 stars 86 forks source link

Hooking wrong layout fix #10

Closed naive closed 12 years ago

naive commented 12 years ago

I had an odd issue. I've mounted rollout_ui like so:

mount RolloutUi::Engine => "/rolloutui", as: "rollout"

On my dev machine if i've started server and opened /rolloutui url first(before accessing any other url on my site) i have no problem, but if i've opened any site url before and tried to access /rolloutui afterwards then rollout_ui tried to hook my application layout instead of his own. Provided code fixes problem for me.

rails 3.2.3 ruby 1.9.3p194

jrallison commented 12 years ago

Nice find. Thanks!