#723 ✓resolved
Mikoangelo

[PATCH] wrong error raised when passing wrong argument type to DataMapper.repository

Reported by Mikoangelo | December 19th, 2008 @ 08:58 PM

When passing anything but a symbol as an argument to DataMapper.repository, an exception is supposed to be raised. However, the code for raising the exception is outdated, and raises a different (and, from the user's perspective, non-sensical) error:

/Library/Ruby/Gems/1.8/gems/dm-core-0.9.8/lib/dm-core.rb:173:in `repository': undefined local variable or method `args' for DataMapper:Module (NameError)

Attached patch corrects this.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Tags

Pages