-
Notifications
You must be signed in to change notification settings - Fork 1
duncanbeevers/denormalizes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
Rails Plugin: Observer behaviour for ActiveRecord models to denormalize information off of other models
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published