lib/documentation/engine.rb in documentation-1.0.7 vs lib/documentation/engine.rb in documentation-1.0.8
- old
+ new
@@ -18,10 +18,10 @@
generators do
require 'documentation/generators/setup_generator'
end
def self.mounted_path
- if route = Rails.application.routes.routes.select { |r| r.app == self }.first
+ if route = Rails.application.routes.routes.select { |r| r.app == self or r.app.try(:app) == self }.first
route.path.spec.to_s
end
end
end