Condensed as per Daniel's comment

This commit is contained in:
Robsteranium 2011-12-02 12:17:24 +00:00
parent f7bde9b654
commit 08b23d3a7f

View file

@ -9,7 +9,6 @@ module Diaspora::Guid
# @return [String] The model's guid.
def set_guid
self.guid ||= ActiveSupport::SecureRandom.hex(8)
self.guid = ActiveSupport::SecureRandom.hex(8) if self.guid.blank?
end
end