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

Better handling of previously enabled Devise model deserialization #1805

Merged
merged 1 commit into from
May 2, 2012
Merged

Better handling of previously enabled Devise model deserialization #1805

merged 1 commit into from
May 2, 2012

Conversation

rosenfeld
Copy link
Contributor

See issue #1800

@travisbot
Copy link

This pull request passes (merged 6c943c79 into 3752981).

if klass.respond_to? :serialize_from_session
klass.serialize_from_session(*args)
else
Rails.logger.warn "[Devise] Stored serialized class #{klass_name} seems not to be Devise enabled anymore. Did you do that on purpose?"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should return nil here.

@rosenfeld
Copy link
Contributor Author

Good catch, I've rebased it against master and committed --amend with the nil return value fix

josevalim added a commit that referenced this pull request May 2, 2012
Better handling of previously enabled Devise model deserialization
@josevalim josevalim merged commit 67f2074 into heartcombo:master May 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants