Sha256: e59272db180bc58c444a08102c5561300fd2f75d237b52d042fcd006f0a80cb9
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true require "active_support/ordered_options" module Quilt class Configuration < ActiveSupport::OrderedOptions def initialize super react_server_ip = ENV['REACT_SERVER_IP'] || "localhost" react_server_port = ENV['REACT_SERVER_PORT'] || 8081 self.react_server_host = "#{react_server_ip}:#{react_server_port}" self.react_server_protocol = ENV['REACT_SERVER_PROTOCOL'] || "http" self.mount = true end def mount? mount end end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quilt_rails-3.4.0 | lib/quilt_rails/configuration.rb |
quilt_rails-3.3.1 | lib/quilt_rails/configuration.rb |