refinery / refinerycms-authentication-devise

Devise based authentication extension for Refinery CMS
MIT License
17 stars 61 forks source link

Traverse up an additional level when defining root path #36

Closed bricesanchez closed 6 years ago

bricesanchez commented 6 years ago

HI @joshmcarthur, let me open this PR for you it will be easier for us to follow this bugfix. I will wait for your regression test. Thanks !

I suspect the Refinery:Authentication::Devise#root method is either generated or copy-pasted from another plugin. Normally, a plugin would define the root and factory_paths methods in lib/refinery/plugin_name.rb, however this particular plugin is nested in under authentication, meaning that the root path is actually a directory higher than usual.

bricesanchez commented 6 years ago

Thank you very much @joshmcarthur !