Sha256: ab6a91d1c11c9ab6623687ed0ff9ed8e4fb34950d5dc4220e28b141049fb49a3

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

# Setup the listed gems in the gemfile
require 'bundler/setup'

# Actually require the gems
Bundler.require(:default)

# Set the project root
Nrb.config.root = File.expand_path('..', __dir__)

# Add the root to the load path
$:.unshift(Nrb.root) unless $:.include?(Nrb.root)

# Require other configurations from the config/nrb.rb file
require 'config/nrb'

# Setup ActiveRecord
require 'logger'
ActiveRecord::Base.configurations = YAML.load_file('db/config.yml')
ActiveRecord::Base.establish_connection(:development)
ActiveRecord::Base.logger = Logger.new(STDOUT)

# Finally require files inside config.resources
Nrb.config.resources.each do |dir|
  Dir[File.join(dir, '*.rb')].each { |f| require(f) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nrb-1.1.0 lib/nrb/templates/config/boot.rb.tt