mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Include only the bare minimum of helpers into JS template context to avoid intermittent SASS @include issues
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
# https://github.com/pitr/angular-rails-templates/issues/45#issuecomment-43229086
|
||||
|
||||
Rails.application.assets.context_class.class_eval do
|
||||
include ApplicationHelper
|
||||
include ActionView::Helpers
|
||||
include Rails.application.routes.url_helpers
|
||||
# include ApplicationHelper
|
||||
# include ActionView::Helpers
|
||||
# include Rails.application.routes.url_helpers
|
||||
|
||||
# Including all of the helpers (above) has caused some intermittent CSS include issues
|
||||
# (not finding mixins from an @include in sass). Therefore, we're only including the
|
||||
# bare minimum here.
|
||||
include ActionView::Helpers::TranslationHelper
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user