Files

Class Index [+]

Quicksearch

MerbAuthSlicePassword

All Slice code is expected to be namespaced inside a module

Public Class Methods

activate() click to toggle source

Activation hook - runs after AfterAppLoads BootLoader

    # File lib/merb-auth-slice-password.rb, line 45
45:   def self.activate
46:     # Load the default strategies
47:   end
deactivate() click to toggle source

Deactivation hook - triggered by Merb::Slices.deactivate(MerbAuthSlicePassword)

    # File lib/merb-auth-slice-password.rb, line 50
50:   def self.deactivate
51:   end
init() click to toggle source

Initialization hook - runs before AfterAppLoads BootLoader

    # File lib/merb-auth-slice-password.rb, line 37
37:   def self.init
38:     require "merb-auth-more/mixins/redirect_back"
39:     unless ::Merb::Slices::config[:"merb-auth-slice-password"][:no_default_strategies]
40:       ::Merb::Authentication.activate!(:default_password_form)
41:     end
42:   end
loaded() click to toggle source

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

    # File lib/merb-auth-slice-password.rb, line 33
33:   def self.loaded
34:   end
setup_router(scope) click to toggle source

Setup routes inside the host application

@param scope

 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 :mauth_password_slice_

  to avoid potential conflicts with global named routes.
    # File lib/merb-auth-slice-password.rb, line 62
62:   def self.setup_router(scope)
63:     # example of a named route
64:     scope.match("/login", :method => :get ).to(:controller => "/exceptions",  :action => "unauthenticated").name(:login)
65:     scope.match("/login", :method => :put ).to(:controller => "sessions",     :action => "update"         ).name(:perform_login)
66:     scope.match("/logout"                 ).to(:controller => "sessions",     :action => "destroy"        ).name(:logout)
67:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.