Sha256: c02878d691b86ac27f641c28c76e9111f8561bee5f35c04a35065222bd15d1ae
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true require 'yaml' module DirtyUrl class DefaultUrlOptions def self.fetch return Chamber.dig!(:http, :url_components).symbolize_keys if defined?(Chamber) settings_file = application.root.join('config', 'dirty_url.yml') YAML.safe_load(File.read(settings_file)).symbolize_keys end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dirty_url-0.0.8 | lib/dirty_url/default_url_options.rb |
dirty_url-0.0.7 | lib/dirty_url/default_url_options.rb |