From 07e37d052130fb7f5f72d201c97b4bcf880f1890 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 20 Jun 2012 10:38:06 -0400 Subject: [PATCH] mounted_on uses url_for --- lib/locomotive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive.rb b/lib/locomotive.rb index 1dfc4925..6755d986 100644 --- a/lib/locomotive.rb +++ b/lib/locomotive.rb @@ -123,7 +123,7 @@ module Locomotive end def self.mounted_on - Rails.application.routes.named_routes[:locomotive].path.spec.to_s + url_for(Rails.application.routes.named_routes[:locomotive].path.spec.to_s) end def self.url_for(path)