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
def self.run
  Merb::Slices.each_slice do |slice|
    Merb.logger.info!("Activating slice '#{slice}' ...")
    slice.activate if slice.respond_to?(:activate) && slice.routed?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.