SFEley/candy

Query methods overridden by common class method names

SFEley opened this issue · 1 comments

ruby-1.9.1-p378 > c = Person.name('Bob Smith')
ArgumentError: wrong number of arguments(1 for 0)
from (irb):5:in `name'
from (irb):5
from /Volumes/seley01/Users/steve/.rvm/rubies/ruby-1.9.1-p378/bin/irb:17:in `<main>'

This hit me twice in a row. User.name("foo") - nope. User.username("foo") - not that either.