Revert change in admin namespace helper and redefine it in the controller

This commit is contained in:
Amaia Castro
2017-01-11 15:34:41 +01:00
parent 96f0f766ab
commit 4a5276f089
3 changed files with 11 additions and 3 deletions

View File

@@ -2,4 +2,13 @@ class Admin::Legislation::BaseController < Admin::BaseController
include FeatureFlags
feature_flag :legislation
helper_method :namespace
private
def namespace
"admin"
end
end

View File

@@ -23,7 +23,7 @@ module AdminHelper
private
def namespace
controller.class.parent.name.downcase.gsub("::", "/")
controller.class.parent.name.downcase
end
end

View File

@@ -1 +0,0 @@
<%= render "admin/menu" %>