Sha256: 38d6cbc48dda3ba919f003c43c6ae48876e3d11d722608f3371d8fe38e62254a

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

# Setup the listed gems in the gemfile
require 'bundler/setup'
<%# TODO: Maybe add gemfile groups? %>
# 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)

# 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.directories
Nrb.config.directories.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.0.0 lib/nrb/templates/config/boot.rb.tt