Skip to content
Extraits de code Groupes Projets
Valider 08b23d3a rédigé par Robsteranium's avatar Robsteranium
Parcourir les fichiers

Condensed as per Daniel's comment

parent f7bde9b6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,7 +9,6 @@ module Diaspora::Guid ...@@ -9,7 +9,6 @@ module Diaspora::Guid
# @return [String] The model's guid. # @return [String] The model's guid.
def set_guid def set_guid
self.guid ||= ActiveSupport::SecureRandom.hex(8)
self.guid = ActiveSupport::SecureRandom.hex(8) if self.guid.blank? self.guid = ActiveSupport::SecureRandom.hex(8) if self.guid.blank?
end end
end end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter