Skip to content

Commit

Permalink
Make public_locale_name_for helper available in entry templates tab
Browse files Browse the repository at this point in the history
REDMINE-20833
  • Loading branch information
tf committed Oct 23, 2024
1 parent 2999188 commit 31473a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions admins/pageflow/sites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31473a4

Please sign in to comment.