mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
reflect mapping to match initialize
This commit is contained in:
parent
66d6e7be03
commit
7af4d91a98
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ module ActiveRecord
|
|||
# the database).
|
||||
#
|
||||
# class Customer < ActiveRecord::Base
|
||||
# composed_of :balance, class_name: "Money", mapping: %w(balance amount)
|
||||
# composed_of :balance, class_name: "Money", mapping: %w(amount currency)
|
||||
# composed_of :address, mapping: [ %w(address_street street), %w(address_city city) ]
|
||||
# end
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue