Skip to content

Small controllers refactor #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2019
Merged

Small controllers refactor #464

merged 2 commits into from
Mar 11, 2019

Conversation

markets
Copy link
Collaborator

@markets markets commented Feb 20, 2019

WAT?

Couple of minor cleanups:

  • removed unused store_location: Restore visit previous URL stored in session #249 has been closed, so there is no point of maintaining a session[:previous_url] right now

  • moved switch_lang action to ApplicationController + added spec: => ✂️ GlobalController that only handles this action, so I think it's fine (and simpler) to move it to main/app controller

TESTING

  • We just need to test the language switcher

@markets markets force-pushed the refactor_switch_lang branch 2 times, most recently from bbe2579 to 791e5e2 Compare February 20, 2019 22:43
@markets markets force-pushed the refactor_switch_lang branch from 791e5e2 to 2dda06f Compare February 20, 2019 23:07
@sseerrggii
Copy link
Contributor

sseerrggii commented Mar 11, 2019

Tested 💚

language switcher work as usual

@enricostano enricostano merged commit 3e5a188 into develop Mar 11, 2019
@enricostano enricostano deleted the refactor_switch_lang branch March 11, 2019 17:19
@enricostano enricostano added this to the 1.12.0 milestone Mar 14, 2019
@enricostano enricostano mentioned this pull request Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants