Allow using table actions in different namespaces

This way we can reuse it in sections like SDGManagement and URLs will be
automatically generated as expected.
This commit is contained in:
Javi Martín
2021-01-07 17:49:24 +01:00
parent 2968275a1c
commit c66a5a30ef
10 changed files with 63 additions and 14 deletions

View File

@@ -39,9 +39,7 @@ module AdminHelper
user_roles(user).join(", ")
end
private
def namespace
controller.class.name.split("::").first.underscore
end
def namespace
controller.class.name.split("::").first.underscore
end
end