Module: MerbAuthSlicePasswordReset
- Defined in:
- lib/merb-auth-slice-password-reset.rb
Overview
All Slice code is expected to be namespaced inside a module
Defined Under Namespace
Classes: Application, PasswordResetMailer, Passwords
Class Method Summary collapse
-
.activate ⇒ Object
Activation hook - runs after AfterAppLoads BootLoader.
-
.deactivate ⇒ Object
Deactivation hook - triggered by Merb::Slices.deactivate(MerbAuthSlicePasswordReset).
-
.init ⇒ Object
Initialization hook - runs before AfterAppLoads BootLoader.
-
.loaded ⇒ Object
Stub classes loaded hook - runs before LoadClasses BootLoader right after a slice’s classes have been loaded internally.
-
.setup_router(scope) ⇒ Object
Setup routes inside the host application.
Class Method Details
.activate ⇒ Object
Activation hook - runs after AfterAppLoads BootLoader
43 44 |
# File 'lib/merb-auth-slice-password-reset.rb', line 43 def self.activate end |
.deactivate ⇒ Object
Deactivation hook - triggered by Merb::Slices.deactivate(MerbAuthSlicePasswordReset)
47 48 |
# File 'lib/merb-auth-slice-password-reset.rb', line 47 def self.deactivate end |
.init ⇒ Object
Initialization hook - runs before AfterAppLoads BootLoader
39 40 |
# File 'lib/merb-auth-slice-password-reset.rb', line 39 def self.init end |
.loaded ⇒ Object
Stub classes loaded hook - runs before LoadClasses BootLoader right after a slice’s classes have been loaded internally.
35 36 |
# File 'lib/merb-auth-slice-password-reset.rb', line 35 def self.loaded end |
.setup_router(scope) ⇒ Object
prefix your named routes with :merb_auth_slice_password_reset_ to avoid potential conflicts with global named routes.
Setup routes inside the host application
59 60 61 62 63 |
# File 'lib/merb-auth-slice-password-reset.rb', line 59 def self.setup_router(scope) scope.match("/reset_password/:password_reset_code").to(:controller => "passwords", :action => "reset").name(:reset_password) scope.match("/forgot_password", :method => :get).to(:controller => "passwords", :action => "forgot_password").name(:forgot_password) scope.match("/forgot_password", :method => :post).to(:controller => "passwords", :action => "send_confirmation") end |