Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty session #70

Merged
merged 4 commits into from
May 27, 2014
Merged

Fix empty session #70

merged 4 commits into from
May 27, 2014

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented May 27, 2014

No description provided.

bjoerge added 3 commits May 27, 2014 14:18
* master:
  Add new CLI command 'checkpoint identity generate_app_key' for creating app-specific god keys.
@bjoerge
Copy link
Member Author

bjoerge commented May 27, 2014

Seems to be problems with semaphore. The test suite is passing on my machine.

@@ -104,8 +104,13 @@ def on_primary_domain?
current_realm && request.host == current_realm.primary_domain_name
end

def valid_session?(session)
!session.nil? && !session.empty?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or simply !session.blank? since ActiveRecord is loaded.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det er ikke helt ekvivalent, men jo, det er jo sikkert helt greit å eksludere strenger med flere whitespaces også :)

bjoerge added a commit that referenced this pull request May 27, 2014
@bjoerge bjoerge merged commit 652b9d8 into master May 27, 2014
@bjoerge bjoerge deleted the fix-empty-session branch May 27, 2014 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants