Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.61 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # [:dependent]
  2.       #   If set to <tt>:destroy</tt> all the associated objects are destroyed
  3.       #   alongside this object by calling their +destroy+ method.  If set to <tt>:delete_all</tt> all associated
  4.       #   objects are deleted *without* calling their +destroy+ method.  If set to <tt>:nullify</tt> all associated
  5.       #   objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. If set to
  6.       #   <tt>:restrict</tt> this object cannot be deleted if it has any associated object.
  7.       #
  8.       #   *Warning:* This option is ignored when used with <tt>:through</tt> option.
  9.       #