File: url_methods.rb

package info (click to toggle)
ruby-browser 5.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 872 kB
  • sloc: ruby: 4,752; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Browser
  class Middleware
    class Context
      module UrlMethods
        def default_url_options
          Rails.configuration.browser.default_url_options ||
            Rails.configuration.action_mailer.default_url_options ||
            {}
        end
      end
    end
  end
end