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
|
include FeatureFlags
|
||||||
|
|
||||||
feature_flag :legislation
|
feature_flag :legislation
|
||||||
|
|
||||||
|
helper_method :namespace
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def namespace
|
||||||
|
"admin"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ module AdminHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def official_level_options
|
def official_level_options
|
||||||
options = [["",0]]
|
options = [["", 0]]
|
||||||
(1..5).each do |i|
|
(1..5).each do |i|
|
||||||
options << [[t("admin.officials.level_#{i}"), setting["official_level_#{i}_name"]].compact.join(': '), i]
|
options << [[t("admin.officials.level_#{i}"), setting["official_level_#{i}_name"]].compact.join(': '), i]
|
||||||
end
|
end
|
||||||
@@ -23,7 +23,7 @@ module AdminHelper
|
|||||||
private
|
private
|
||||||
|
|
||||||
def namespace
|
def namespace
|
||||||
controller.class.parent.name.downcase.gsub("::", "/")
|
controller.class.parent.name.downcase
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<%= render "admin/menu" %>
|
|
||||||
Reference in New Issue
Block a user