
[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
-
Dan Kubb (dkubb) January 8th, 2009 @ 03:16 PM
- State changed from unconfirmed to resolved
- Assigned user set to Dan Kubb (dkubb)
This has been resolved in dkubb/dm-core:
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »