Sha256: 100e3530fc4e999224d2815dadbe8e605a9598d2d7678bb709063d5e0ca034d2
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true require 'dirty_url/default_url_options' module DirtyUrl class Railtie < Rails::Railtie initializer 'dirty_url.load', after: :load_environment_config do |application| default_url_options ||= ::DirtyUrl::DefaultUrlOptions.fetch application.config.action_controller.default_url_options = default_url_options application.config.action_dispatch.default_url_options = default_url_options application.config.action_mailer.default_url_options = default_url_options application.routes.default_url_options = default_url_options if ActionMailer::Base.respond_to?(:'default_url_options=') ActionMailer::Base.default_url_options = default_url_options end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dirty_url-0.0.8 | lib/dirty_url/railtie.rb |
dirty_url-0.0.7 | lib/dirty_url/railtie.rb |
dirty_url-0.0.6 | lib/dirty_url/railtie.rb |