Permalink
Browse files

Update lib/apipie/application.rb

Use controller_path() when possible in order to deal with namespaced controller
  • Loading branch information...
1 parent aeb6e64 commit 4f3a196f9a10b839b04f03603877c1b77adad8a7 @Systho committed Jan 22, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/apipie/application.rb
@@ -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

0 comments on commit 4f3a196

Please sign in to comment.