Sha256: a71c5780d89b2755ff8b63ea4b38bc114040814b2523c506a63dfe7a2774a2a6

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

# Initialize environment
ROOT_PATH = File.expand_path(".")
ENV["RACK_ENV"] ||= "development"
Bundler.require(:default, ENV["RACK_ENV"].to_sym)

# Initialize settings
setting_files = "./config/settings/{app,oauth}.yml"
Apimaster::Setting.environment = ENV["RACK_ENV"]
Apimaster::Setting.load_file(setting_files)

# Database setting
Mongoid.load!("./config/settings/mongoid.yml")

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
apimaster-0.1.4 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.1.3 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.1.2 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.1.1 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.0.7 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.0.6 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.0.5 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.0.4 lib/apimaster/generators/templates/config/initializer.rb.erb
apimaster-0.0.3 lib/apimaster/generators/templates/config/initializer.rb.erb