Update lib/apipie/application.rb #77

Closed
wants to merge 1 commit into
from
@@ -228,6 +228,9 @@ def active_dsl?
def get_resource_name(klass)
if klass.class == String
klass
+ elsif klass.respond_to?(:controller_path)
+ klass.controller_path
+ end
elsif klass.respond_to?(:controller_name)
klass.controller_name
end