Sha256: 59d81e690dd5f06c58d7f0e67c495ef3f42a20a95ff6205bffda767878b5899f

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require_relative "./boot"
require "action_controller/railtie"

require "pco/url"

module Dummy
  class Application < Rails::Application
    config.eager_load = false
    config.hosts << /accounts\.pco\.(test|codes)/ if Rails::VERSION::MAJOR >= 6
    config.secret_key_base = "123abc"
  end
end

Dummy::Application.initialize!

class TestsController < ActionController::Base
  def show
    render plain: PCO::URL.people
  end
end

Rails.application.routes.draw do
  resource :test
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pco-url-2.1.3 spec/dummy/config/application.rb
pco-url-2.1.2 spec/dummy/config/application.rb
pco-url-2.1.1 spec/dummy/config/application.rb