Sha256: 48883143e3be4cb051de48d9a30916cd490914daa34a6157fe3c15a0792648e9

Contents?: true

Size: 421 Bytes

Versions: 31

Compression:

Stored size: 421 Bytes

Contents

Ree.add_error_types(
  :invalid_param,
  :not_found,
  :validation
)

# Switch Ree.logger to debug level
# Ree.set_logger_debug

if ENV['RUBY_ENV'] == 'test'
  Ree.enable_contracts
end

if ENV['RUBY_ENV'] == 'production'
  # Define preload context for registered objects
  Ree.preload_for(:production)

  # Use performance mode to load packages and registered objects based on schema files
  Ree.set_performance_mode
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ree-1.0.30 lib/ree/templates/init/ree.setup.rb
ree-1.0.29 lib/ree/templates/init/ree.setup.rb
ree-1.0.28 lib/ree/templates/init/ree.setup.rb
ree-1.0.27 lib/ree/templates/init/ree.setup.rb
ree-1.0.26 lib/ree/templates/init/ree.setup.rb
ree-1.0.25 lib/ree/templates/init/ree.setup.rb
ree-1.0.24 lib/ree/templates/init/ree.setup.rb
ree-1.0.23 lib/ree/templates/init/ree.setup.rb
ree-1.0.22 lib/ree/templates/init/ree.setup.rb
ree-1.0.21 lib/ree/templates/init/ree.setup.rb
ree-1.0.20 lib/ree/templates/init/ree.setup.rb
ree-1.0.19 lib/ree/templates/init/ree.setup.rb
ree-1.0.18 lib/ree/templates/init/ree.setup.rb
ree-1.0.17 lib/ree/templates/init/ree.setup.rb
ree-1.0.16 lib/ree/templates/init/ree.setup.rb
ree-1.0.15 lib/ree/templates/init/ree.setup.rb
ree-1.0.14 lib/ree/templates/init/ree.setup.rb
ree-1.0.13 lib/ree/templates/init/ree.setup.rb
ree-1.0.12 lib/ree/templates/init/ree.setup.rb
ree-1.0.11 lib/ree/templates/init/ree.setup.rb