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 | |
|---|---|---|---|
| |
.gitignore | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
README | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
Rakefile | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
app/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
config/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
db/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
doc/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
lib/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
public/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
script/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
test/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
| |
vendor/ | Fri May 09 10:21:53 -0700 2008 | [duncanbeevers] |
README
Denormalizes provides a clean syntax for specifying observation
and denormalization rules between ActiveRecord models.
class UserScore < ActiveRecord::Base
belongs_to :user
named_scope_for :user_id
denormalizes :score, :from => :user
end
There are a number of common-sense conventions in use here.
First, the denormalization model must have reflection onto the
observed model in the form of a has_one or belongs_to.
Second, denormalized values can only be activerecord attributes
of the observed model, (must be columns in the database) and
the observer model's columns must match those of the observed
model.




