Skip to content
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

Call super from set_user_language #114

Closed

Conversation

jhawthorn
Copy link
Contributor

This allows reusing the existing implementation in Solidus's controller_helpers/common, which is in some ways better than the implementation here.

This also removes the prepend_before_action, since it is already added as a before_action in Solidus itself.

This allows reusing the existing implementation in Solidus's
`controller_helpers/common`, which is in some ways better than the
implementation here.

This also removes the prepend_before_action, since it is already added
as a before_action in Solidus itself.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Any idea how to handle Solidus < 1.3? Their EOL will be reached soon anyway, right?

@kennyadsl
Copy link
Member

@tvdeyen what's your concern with Solidus < 1.3?

@tvdeyen
Copy link
Member

tvdeyen commented Mar 2, 2018

@kennyadsl it breaks for Soliuds < 1.3 because it does not have set_user_language defined.

@kennyadsl
Copy link
Member

kennyadsl commented Mar 2, 2018

it looks like it does, maybe it's loaded in a different way?

@kennyadsl
Copy link
Member

Got it, in 1.2 those methods were inside the include block and this commit fixed the issue. Thinking on a way to support it...

@tvdeyen
Copy link
Member

tvdeyen commented Mar 2, 2018

I don’t think it’s worth to support Solidus < 1.3. It will reach end of life soon and for users of old versions of Solidus there are still older version of this gem.

@jhawthorn
Copy link
Contributor Author

jhawthorn commented Mar 12, 2018

I think this might be made unnecessary by some of the work in solidusio/solidus#2559.

My goal is to move most of solidus_i18n's functionality into solidus itself, making this gem just a repository of locale data.

@jhawthorn
Copy link
Contributor Author

Closed by #2626 🎉 🎉 🎉 🎉 🎉

@jhawthorn jhawthorn closed this May 2, 2018
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