Skip to content

Commit

Permalink
Very minor meta.rb improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Apr 30, 2008
1 parent 1e4cfe1 commit b902efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/strokedb/document/meta.rb
Expand Up @@ -31,11 +31,11 @@ def resolve_uuid_name(nsurl,name)
end

def make_uuid_from_fullname(full_name)
StrokeDB::Util.sha1_uuid(full_name)
::StrokeDB::Util.sha1_uuid(full_name)
end

def make_uuid(nsurl, name)
StrokeDB::Util.sha1_uuid("meta:#{nsurl}##{name}")
::StrokeDB::Util.sha1_uuid("meta:#{nsurl}##{name}")
end

def new(*args, &block)
Expand Down Expand Up @@ -83,7 +83,7 @@ def document(store=nil)
private

def uuid
@uuid ||= ::Util.sha1_uuid("meta:#{StrokeDB.nsurl}##{Meta.name.demodulize}")
@uuid ||= ::StrokeDB::Util.sha1_uuid("meta:#{StrokeDB.nsurl}##{Meta.name.demodulize}")
end

end
Expand Down

0 comments on commit b902efb

Please sign in to comment.