Skip to content

Commit

Permalink
Merge pull request #2162 from DanielKuhn/remove-redundant-pageflow-na…
Browse files Browse the repository at this point in the history
…mespaces

Remove redundant pageflow namespaces in admin
  • Loading branch information
tf authored Oct 22, 2024
2 parents 9ef2e68 + b22d50a commit 30e8eb4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions admins/pageflow/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ module Pageflow
end

controller do
helper Pageflow::Admin::CutoffModesHelper
helper Pageflow::Admin::FeaturesHelper
helper Pageflow::Admin::FormHelper
helper Pageflow::Admin::LocalesHelper
helper Pageflow::Admin::MembershipsHelper
helper Admin::CutoffModesHelper
helper Admin::FeaturesHelper
helper Admin::FormHelper
helper Admin::LocalesHelper
helper Admin::MembershipsHelper
helper ThemesHelper

def new
Expand Down
6 changes: 3 additions & 3 deletions admins/pageflow/entry_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ module Pageflow
end

controller do
helper Pageflow::Admin::FormHelper
helper Pageflow::Admin::WidgetsHelper
helper Pageflow::Admin::LocalesHelper
helper Admin::FormHelper
helper Admin::WidgetsHelper
helper Admin::LocalesHelper

def index
redirect_to redirect_path
Expand Down
4 changes: 2 additions & 2 deletions admins/pageflow/membership.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ module Pageflow
belongs_to :account, parent_class: Pageflow::Account, polymorphic: true
belongs_to :user, parent_class: User, polymorphic: true

helper Pageflow::Admin::MembershipsHelper
helper Pageflow::Admin::FormHelper
helper Admin::MembershipsHelper
helper Admin::FormHelper

def index
if params[:user_id].present?
Expand Down
2 changes: 1 addition & 1 deletion admins/pageflow/revisions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Pageflow
controller do
include EditLocking

helper Pageflow::Admin::FormHelper
helper Admin::FormHelper

def permitted_params
params.permit(revision: [:published_until])
Expand Down
4 changes: 2 additions & 2 deletions admins/pageflow/sites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ module Pageflow
end

controller do
helper Pageflow::Admin::CutoffModesHelper
helper Pageflow::Admin::FormHelper
helper Admin::CutoffModesHelper
helper Admin::FormHelper

before_create do |site|
site.build_default_permalink_directory
Expand Down
2 changes: 1 addition & 1 deletion admins/pageflow/translations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Pageflow
end

controller do
helper Pageflow::Admin::FormHelper
helper Admin::FormHelper

def index
redirect_to admin_entry_path(parent, tab: 'translations')
Expand Down
12 changes: 6 additions & 6 deletions admins/pageflow/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ module Pageflow
end

controller do
include Pageflow::QuotaVerification
helper Pageflow::Admin::FormHelper
helper Pageflow::Admin::LocalesHelper
helper Pageflow::Admin::MembershipsHelper
helper Pageflow::Admin::UsersHelper
helper Pageflow::QuotaHelper
include QuotaVerification
helper Admin::FormHelper
helper Admin::LocalesHelper
helper Admin::MembershipsHelper
helper Admin::UsersHelper
helper QuotaHelper

def scoped_collection
super.includes(account_memberships: :entity)
Expand Down

0 comments on commit 30e8eb4

Please sign in to comment.