Revert change in admin namespace helper and redefine it in the controller
This commit is contained in:
@@ -2,4 +2,13 @@ class Admin::Legislation::BaseController < Admin::BaseController
|
||||
include FeatureFlags
|
||||
|
||||
feature_flag :legislation
|
||||
|
||||
helper_method :namespace
|
||||
|
||||
private
|
||||
|
||||
def namespace
|
||||
"admin"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@ module AdminHelper
|
||||
end
|
||||
|
||||
def official_level_options
|
||||
options = [["",0]]
|
||||
options = [["", 0]]
|
||||
(1..5).each do |i|
|
||||
options << [[t("admin.officials.level_#{i}"), setting["official_level_#{i}_name"]].compact.join(': '), i]
|
||||
end
|
||||
@@ -23,7 +23,7 @@ module AdminHelper
|
||||
private
|
||||
|
||||
def namespace
|
||||
controller.class.parent.name.downcase.gsub("::", "/")
|
||||
controller.class.parent.name.downcase
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<%= render "admin/menu" %>
|
||||
Reference in New Issue
Block a user