lib/prospecto/railtie.rb in prospecto-0.1.1 vs lib/prospecto/railtie.rb in prospecto-0.1.3
- old
+ new
@@ -1,9 +1,10 @@
require 'rails/railtie'
module Prospecto
class Railtie < Rails::Railtie
initializer "prospecto.initialize" do |app|
-
+ # Import the url helpers to allow resolving of URLs easily
+ Prospecto::PresenterView.send :include, Rails.application.routes.url_helpers
end
end
end