Renaming casted model to embeddable and preparing for 1.1.0 launch@
This commit is contained in:
parent
05ed7b127f
commit
8efa5208da
13 changed files with 51 additions and 33 deletions
|
@ -47,8 +47,8 @@ module CouchRest
|
|||
#
|
||||
# Options supported:
|
||||
#
|
||||
# * :directly_set_attributes: true when data comes directly from database
|
||||
# * :database: provide an alternative database
|
||||
# * :directly_set_attributes, true when data comes directly from database
|
||||
# * :database, provide an alternative database
|
||||
#
|
||||
# If a block is provided the new model will be passed into the
|
||||
# block so that it can be populated.
|
||||
|
@ -64,6 +64,7 @@ module CouchRest
|
|||
yield self if block_given?
|
||||
|
||||
after_initialize if respond_to?(:after_initialize)
|
||||
run_callbacks(:initialize) { self }
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue