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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user