File: %base_name%.rb

# %base_name%.rb

Path: | lib/generators/templates/thin/lib/%base_name%.rb
Last Update: | Fri Mar 19 08:48:50 -0600 2010

### Methods

activate deactivate init loaded setup_default_structure! setup_router

### Public Class methods

activate()

Activation hook - runs after AfterAppLoads BootLoader

deactivate()

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

init()

Initialization hook - runs before AfterAppLoads BootLoader

loaded()

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

setup_default_structure!()

This sets up a thin slice‘s structure.

setup_router(scope)

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]