mounted_on uses url_for

This commit is contained in:
John Bintz 2012-06-20 10:38:06 -04:00
parent 07f868594a
commit 07e37d0521

View File

@ -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)