Sha256: 3be2645160e97c1c5e52ab8c0cf48a22d4d060ca285b6c1cb4effadff286d8db

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 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.rails3_0?
          
          include UrlMethods  # provide an initial #default_url_options.
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roar-rails-0.1.5 lib/roar/rails/railtie.rb
roar-rails-0.1.4 lib/roar/rails/railtie.rb
roar-rails-0.1.3 lib/roar/rails/railtie.rb
roar-rails-0.1.2 lib/roar/rails/railtie.rb
roar-rails-0.1.1 lib/roar/rails/railtie.rb
roar-rails-0.1.0 lib/roar/rails/railtie.rb