Sha256: d5fdd08e16180366412b17e5f60b0f1eafe4232196307bba933f583225f10ab5

Contents?: true

Size: 525 Bytes

Versions: 13

Compression:

Stored size: 525 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 ::Rails::VERSION::MINOR == 0
          
          include UrlMethods  # provide an initial #default_url_options.
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
roar-rails-0.0.15 lib/roar/rails/railtie.rb
roar-rails-0.0.14 lib/roar/rails/railtie.rb
roar-rails-0.0.13 lib/roar/rails/railtie.rb
roar-rails-0.0.12 lib/roar/rails/railtie.rb
roar-rails-0.0.11 lib/roar/rails/railtie.rb
roar-rails-0.0.10 lib/roar/rails/railtie.rb
roar-rails-0.0.9 lib/roar/rails/railtie.rb
roar-rails-0.0.8 lib/roar/rails/railtie.rb
roar-rails-0.0.7 lib/roar/rails/railtie.rb
roar-rails-0.0.6 lib/roar/rails/railtie.rb
roar-rails-0.0.5 lib/roar/rails/railtie.rb
roar-rails-0.0.4 lib/roar/rails/railtie.rb
roar-rails-0.0.3 lib/roar/rails/railtie.rb