This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | Fri May 09 01:54:52 -0700 2008 | [duncanbeevers] |
| |
init.rb | Fri May 09 01:54:52 -0700 2008 | [duncanbeevers] |
README
Macro for generating attribute-specific selector scopes.
Similar to find_by_attribute methods, these macros provide a more flexible scoping.
class User < ActiveRecord::Base
named_scope_for :group_id
end
User.for_group_id(10).find(:all)
Also provides `order_by` scope that allows you to add order constraints to a query cleanly.
User.order_by('created_at DESC', 'id')




