Skip to content

Commit

Permalink
Minor Meta#named fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Rashkovskii committed May 22, 2008
1 parent 62ffa17 commit 5e40041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strokedb/document/meta.rb
Expand Up @@ -124,7 +124,7 @@ def +(meta)
def named(*args,&block)
args.unshift StrokeDB.default_store unless args.first.is_a?(StrokeDB::Store)
args << {} unless args.last.is_a?(Hash)
raise InvalidArgumentError, "you should specify name" unless args[1].is_a?(String)
raise ArgumentError, "you should specify name" unless args[1].is_a?(String)
name = args[1]
uuid = ::StrokeDB::Util.sha1_uuid("#{document.uuid}:#{name}")
unless doc = find(args[0],uuid)
Expand Down

0 comments on commit 5e40041

Please sign in to comment.