diff --git a/admins/pageflow/sites.rb b/admins/pageflow/sites.rb index cd04f2cdc..219cd208f 100644 --- a/admins/pageflow/sites.rb +++ b/admins/pageflow/sites.rb @@ -37,6 +37,7 @@ module Pageflow controller do helper Admin::CutoffModesHelper helper Admin::FormHelper + helper Pageflow::PublicI18n::LocalesHelper before_create do |site| site.build_default_permalink_directory diff --git a/spec/views/components/pageflow/admin/entry_templates_tab_spec.rb b/spec/views/components/pageflow/admin/entry_templates_tab_spec.rb index 074bd57e9..89c432b9e 100644 --- a/spec/views/components/pageflow/admin/entry_templates_tab_spec.rb +++ b/spec/views/components/pageflow/admin/entry_templates_tab_spec.rb @@ -4,6 +4,7 @@ module Pageflow describe Admin::EntryTemplatesTab, type: :view_component do before do helper.extend(ActiveAdmin::ViewHelpers) + helper.extend(Pageflow::PublicI18n::LocalesHelper) end it "has entries even if corresponding entry templates aren't created yet" do