Sha256: 2dc01e6b6125f94b9a1ab01a3a2768d6199c21e2f3f122c617353f932b4b658e

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

# TODO: mover a pg_scaffold

module PgEngine
  class Configuracion
    attr_accessor :users_controller, :global_domains

    def initialize
      if defined? UsersController
        @users_controller = UsersController
      elsif defined? FrontendController
        @users_controller = FrontendController
      end

      @global_domains = ['app.localhost.com', 'test.host', 'localhost']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_rails-7.5.1 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.5.0 pg_engine/lib/pg_engine/configuracion.rb