Class: Faalis::Engine

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

Overview

‘Engine` class of Faalis.

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 ‘Faalis` environment. This method simply yield the current class and allows developers to change the configuration via the class methods defined in `Faalis::Configuration` ( which is extended in this class ).

Yields:

  • (_self)

Yield Parameters:



53
54
55
56
57
58
# File 'lib/faalis/engine.rb', line 53

def self.setup
  yield self

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