Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove duplicate #signed_in? #4

Merged
merged 2 commits into from

3 participants

@syntaxritual

Removed duplicate signed_in? method from Authem::ControllerSupport

Micah Cooper and Travis Anderson Remove duplicate #signed_in? 64910db
@travisbot

This pull request passes (merged 64910db into fb6eddd).

Micah Cooper and Travis Anderson Add signed_in? as a helper method 4389231
@travisbot

This pull request passes (merged 4389231 into fb6eddd).

@paulelliott paulelliott merged commit 4389231 into paulelliott:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 30, 2012
  1. Remove duplicate #signed_in?

    Micah Cooper and Travis Anderson authored Hashrocket Workstation committed
  2. Add signed_in? as a helper method

    Micah Cooper and Travis Anderson authored Hashrocket Workstation committed
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/authem/controller_support.rb
View
5 lib/authem/controller_support.rb
@@ -24,10 +24,6 @@ def current_user
end
end
- def signed_in?
- !!current_user
- end
-
def require_user
unless current_user
session[:return_to_url] = request.url
@@ -47,6 +43,7 @@ def redirect_back_or_to(url, flash_hash = {})
included do
helper_method :current_user
+ helper_method :signed_in?
end
end
Something went wrong with that request. Please try again.