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

Configuration for skipping session data restoration after login #418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

razenha
Copy link

@razenha razenha commented Mar 20, 2013

I was having some performance issue with the code that restores the session data after the login. My app does not need to save and restore the session data, so I created a configuration that allows it to skip this behaviour.

end


it "login(username,password) should return the user when success, set the session with user.id and discard the old session data when :skip_session_data_restoration config is true" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Too long description for it block.

Let's use context:

context "skip_session_data_restoration config is true" do
   it "works"
     ...
   end
end

Copy link
Author

Choose a reason for hiding this comment

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

It does look better :)

@Ch4s3
Copy link
Contributor

Ch4s3 commented May 24, 2016

I think some version of this might be interesting for 1.0

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