Sha256: 5aa9dc8b45f1ae059c8403329c1e71d6772a5aeaf6184f38f526e0d0220115d8

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

# load bundler
require 'bundler/setup'
Bundler.setup(:default)
require 'napa/setup'
Bundler.require(:default, Napa.env.to_sym)
require 'napa'

# load environment
Dotenv.load(Napa.env.test? ? '.env.test' : '.env')

# autoload lib
Dir['./lib/**/**/*.rb'].map { |file| require file }

# autoload initalizers
Dir['./config/initializers/**/*.rb'].map { |file| require file }

# load middleware configs
Dir['./config/middleware/**/*.rb'].map { |file| require file }

# autoload app
relative_load_paths = %w[app/apis app/entities app/models app/workers lib]
ActiveSupport::Dependencies.autoload_paths += relative_load_paths

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
napa-0.1.23 lib/napa/generators/templates/scaffold/app.rb
napa-0.1.22 lib/napa/generators/templates/scaffold/app.rb