Module: Revise::Controllers::Sessions

Defined in:
lib/revise/controllers/sessions.rb

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/revise/controllers/sessions.rb', line 4

def self.extended(klass)  
  klass.controllers :sessions do
    get :new, :map => '/sessions/new', :priority => :low do
      render "/sessions/new", nil, :layout => false
    end
  
    post :create, :map => '/sessions', :priority => :low do
      authenticate()
    end
  
    delete :destroy, :map => '/sessions', :priority => :low do
      ()
      redirect url(:sessions, :new)
    end
  end
end