Sha256: eb6aea2883247fcfa9352be50ae768f8a4e7cf4589c37c5d12c854c45d2d4d93

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

require 'rails/railtie'

module Prospecto
  # @private
  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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prospecto-0.2.3 lib/prospecto/railtie.rb
prospecto-0.2.2 lib/prospecto/railtie.rb
prospecto-0.2.1 lib/prospecto/railtie.rb