Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Commit

Permalink
RightAws: ActiveSdb: uuidtools 2+ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Mar 31, 2010
1 parent 9bf8dfd commit 08351bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sdb/active_sdb.rb
Expand Up @@ -364,7 +364,11 @@ def select(*args)
end

def generate_id # :nodoc:
UUID.timestamp_create().to_s
if UUID::VERSION::STRING < '2.0.0'
UUID.timestamp_create().to_s
else
UUIDTools::UUID.timestamp_create().to_s
end
end

protected
Expand Down

0 comments on commit 08351bd

Please sign in to comment.