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