lib/devise/models/rememberable.rb in devise-4.1.0 vs lib/devise/models/rememberable.rb in devise-4.1.1

- old
+ new

@@ -44,10 +44,10 @@ def self.required_fields(klass) [:remember_created_at] end def remember_me! - self.remember_token = self.class.remember_token if respond_to?(:remember_token) + self.remember_token ||= self.class.remember_token if respond_to?(:remember_token) self.remember_created_at ||= Time.now.utc save(validate: false) if self.changed? end # If the record is persisted, remove the remember token (but only if