From e63206c1140d25735df019805fef7c9a61bc967f Mon Sep 17 00:00:00 2001 From: JA Date: Wed, 20 Apr 2016 22:51:13 +0100 Subject: [PATCH] Fix #558 : Wrong constant name guess --- lib/administrate/resource_resolver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/administrate/resource_resolver.rb b/lib/administrate/resource_resolver.rb index 553e7b38fe..2a68ff0ec0 100644 --- a/lib/administrate/resource_resolver.rb +++ b/lib/administrate/resource_resolver.rb @@ -35,7 +35,7 @@ def model_path_parts end def controller_path_parts - controller_path.singularize.split("/")[1..-1] + controller_path.split("/")[1..-1].map(&:singularize) end attr_reader :controller_path