Module <
In: lib/generators/templates/common/application.rb
lib/generators/templates/thin/stubs/application.rb
lib/generators/templates/very_thin/lib/%base_name%.rb

All Slice code is expected to be namespaced inside a module

Methods

Public Class methods

Activation hook - runs after AfterAppLoads BootLoader

Deactivation hook - triggered by Merb::Slices.deactivate(<%= module_name %>)

Initialization hook - runs before AfterAppLoads BootLoader

Stub classes loaded hook - runs before LoadClasses BootLoader right after a slice‘s classes have been loaded internally.

This sets up a very thin slice‘s structure.

Setup routes inside the host application

@param scope<Merb::Router::Behaviour>

 Routes will be added within this scope (namespace). In fact, any
 router behaviour is a valid namespace, so you can attach
 routes at any level of your router setup.

@note prefix your named routes with :<%= symbol_name %>_

  to avoid potential conflicts with global named routes.

[Validate]