solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
53 stars 128 forks source link

Decorate `Spree::UsersController` when already existing from Solidus Frontend #206

Open spaghetticode opened 3 years ago

spaghetticode commented 3 years ago

Ref #123

With https://github.com/solidusio/solidus/pull/2695 we're starting to include the order history page (/users/show) in Solidus frontend. At the moment that code is not used, since the one included in solidus_auth_devise takes precedence.

This PR starts the removal of the controller code so that, when available, the version included in Solidus at frontend/app/controllers/spree/users_controller.rb is used instead.

Once all supported versions of Solidus include that page, we will be able to get rid of the else branch with the class definition, together with the ERB view at lib/views/frontend/spree/users/show.html.erb.