Parent

Methods

Merb::Slices::Activate

Call activation method for each registered Slice.

This is done right after the app’s after_load_callbacks are run. Any settings can be taken into account in the activation step.

@note Activation will only take place if the slice has been routed;

  this means you need have at least one slice route setup.

Public Class Methods

run() click to toggle source
     # File lib/merb-slices.rb, line 118
118:     def self.run
119:       Merb::Slices.each_slice do |slice|
120:         Merb.logger.info!("Activating slice '#{slice}' ...")
121:         slice.activate if slice.respond_to?(:activate) && slice.routed?
122:       end
123:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.