Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidies up some whitespace, and adds a hook for plugins to specify how…
… they can clear the whole session
- Loading branch information
Daniel Neighman
committed
Sep 5, 2009
1 parent
76d8ae7
commit c473bc6
Showing
12 changed files
with
160 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pkg | ||
pkg/* | ||
pkg/* | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# encoding: utf-8 | ||
module Warden | ||
class Manager | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# encoding: utf-8 | ||
module Warden | ||
module Strategies | ||
class << self | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# encoding: utf-8 | ||
module Warden | ||
module Strategies | ||
class Base | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# encoding: utf-8 | ||
module Warden | ||
class Proxy | ||
# :api: public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
# encoding: utf-8 | ||
module Warden | ||
module Mixins | ||
module Common | ||
|
||
# Convinience method to access the session | ||
# :api: public | ||
def session | ||
@env['rack.session'] | ||
env['rack.session'] | ||
end # session | ||
|
||
alias_method :raw_session, :session | ||
|
||
# Convenience method to access the rack request | ||
# :api: public | ||
def request | ||
@request ||= Rack::Request.new(@env) | ||
end # request | ||
|
||
# Convenience method to access the rack request params | ||
# :api: public | ||
def params | ||
request.params | ||
end # params | ||
|
||
|
||
# Resets the session. By using this non-hash like sessions can | ||
# be cleared by overwriting this method in a plugin | ||
# @api overwritable | ||
def reset_session! | ||
raw_session.clear | ||
end | ||
end # Common | ||
end # Mixins | ||
end # Warden |
Oops, something went wrong.