Sha256: 86f5d0f15c16573299d52a3b0d7ced061431dda1d8c2f6b89cfc3cfa7c41c8f6

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require "rails/railtie"
require "roar/rails/url_methods"

module Roar
  module Rails
    class Railtie < ::Rails::Railtie
      config.representer = ActiveSupport::OrderedOptions.new

      initializer "roar.set_configs" do |app|
        ::Roar::Representer.module_eval do
          include app.routes.url_helpers
          include app.routes.mounted_helpers unless Roar::Rails.rails_version.~ 3.0

          include UrlMethods  # provide an initial #default_url_options.
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roar-rails-0.1.6 lib/roar/rails/railtie.rb