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 | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
generators/ | ||
| |
init.rb | ||
| |
lib/ |
README
CompositionGenerator
====================
Generates a composition model and a convenience method for mixing it into your models.
Example
=======
./script/generate composition address street city state zip_code
class Person < ActiveRecord::Base
has_address
end
p = Person.new
p.address = Address.new('1234 S. Main St.', 'Anytown', 'CA', 91234)
p.address.street
# => "1234 S. Main St."
p.street
# => "1234 S. Main St."
Copyright (c) 2008 Chris Eppstein, released under the MIT license








