Skip to content

Commit

Permalink
fix session serialization issue (mongoid and devise) heartcombo/devis…
Browse files Browse the repository at this point in the history
  • Loading branch information
codescrum committed Sep 23, 2014
1 parent 349f26c commit dca63d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ class User
# field :failed_attempts, type: Integer, default: 0 # Only if lock strategy is :failed_attempts
# field :unlock_token, type: String # Only if unlock strategy is :email or :both
# field :locked_at, type: Time
def self.serialize_into_session(record)
[record.id.to_s, record.authenticatable_salt]
end


end

0 comments on commit dca63d8

Please sign in to comment.