Flowdock
method

initialize_copy

Importance_1
v3.0.9 - Show latest stable - 0 notes - Class: ActiveRecord::Base
initialize_copy(other) public

Cloned objects have no id assigned and are treated as new records. Note that this is a “shallow” clone as it copies the object’s attributes only, not its associations. The extent of a “deep” clone is application specific and is therefore left to the application to implement according to its need.

Show source
Register or log in to add new notes.