Class: Merb::Slices::Initialize

Inherits:
BootLoader
  • Object
show all
Defined in:
lib/merb-slices.rb

Overview

Call initialization method for each registered Slice.

This is done just before the app’s after_load_callbacks are run. The application has been practically loaded completely, letting the callbacks work with what has been loaded.

Class Method Summary collapse

Class Method Details

.runObject



97
98
99
100
101
102
# File 'lib/merb-slices.rb', line 97

def self.run
  Merb::Slices.each_slice do |slice|
    Merb.logger.info!("Initializing slice '#{slice}' ...") 
    slice.init if slice.respond_to?(:init)
  end
end