Class: Underworld::Engine

Inherits:
Rails::Engine
  • Object
show all
Extended by:
Configuration
Defined in:
lib/underworld/engine.rb

Overview

‘Engine` class of Underworld.

Instance Attribute Summary

Attributes included from Configuration

#site_title

Class Method Summary collapse

Methods included from Configuration

collect_i18n_missing_keys=, enabled?, load_dependencies_based_on_configuration, orm=

Class Method Details

.setup {|_self| ... } ⇒ Object

The actual setup method which is responsible for configuring ‘Underworld` environment. This method simply yield the current class and allows developers to change the configuration via the class methods defined in `Underworld::Configuration` ( which is extended in this class ).

Yields:

  • (_self)

Yield Parameters:



34
35
36
37
38
39
# File 'lib/underworld/engine.rb', line 34

def self.setup
  yield self

  # Load the dependencies needed by each particular feature.
  load_dependencies_based_on_configuration
end