A portage of Scope in ruby with rails