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

Ensure helper is specified in VariantsController #1714

Merged
merged 1 commit into from
Feb 28, 2017

Conversation

eric1234
Copy link
Contributor

The backend/app/views/spree/admin/variants/_form.html.erb now uses a helper method called show_rebuild_vat_checkbox? which is defined in Spree::Admin::ProductsHelper.

This helper is not automatically included if config.action_controller.include_all_helpers is configured to false. See PR #1496 for rational and previous discussion on this topic.

The [backend/app/views/spree/admin/variants/_form.html.erb](https://github.com/solidusio/solidus/blob/master/backend/app/views/spree/admin/variants/_form.html.erb#L73) now uses a helper method called `show_rebuild_vat_checkbox?` which is defined in [Spree::Admin::ProductsHelper](https://github.com/solidusio/solidus/blob/master/backend/app/helpers/spree/admin/products_helper.rb#L28).

This helper is not automatically included if `config.action_controller.include_all_helpers` is configured to false. See [PR solidusio#1496](solidusio#1496) for rational and previous discussion on this topic.
Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

LGTM

@jhawthorn jhawthorn merged commit 69d06ae into solidusio:master Feb 28, 2017
eric1234 added a commit to eric1234/solidus that referenced this pull request Mar 14, 2017
Another fix to make Solidus `config.action_controller.include_all_helpers = false` compatible.

See PR solidusio#1496 and PR solidusio#1714 for background.
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