Typppo
This commit is contained in:
parent
6ea48ebfa6
commit
2fb1cdd0a5
|
@ -1231,7 +1231,7 @@ module ActiveRecord
|
|||
# its owner is destroyed:
|
||||
#
|
||||
# * <tt>:destroy</tt> causes the associated object to also be destroyed
|
||||
# * <tt>:delete</tt> causes the asssociated object to be deleted directly from the database (so callbacks will not execute)
|
||||
# * <tt>:delete</tt> causes the associated object to be deleted directly from the database (so callbacks will not execute)
|
||||
# * <tt>:nullify</tt> causes the foreign key to be set to +NULL+. Callbacks are not executed.
|
||||
# * <tt>:restrict_with_exception</tt> causes an exception to be raised if there is an associated record
|
||||
# * <tt>:restrict_with_error</tt> causes an error to be added to the owner if there is an associated object
|
||||
|
|
|
@ -450,7 +450,7 @@ ActiveSupport::Notifications.subscribe "process_action.action_controller" do |*a
|
|||
data # { extra: :information }
|
||||
```
|
||||
|
||||
You may also subscribe to events matching a regular expresssion. This enables you to subscribe to
|
||||
You may also subscribe to events matching a regular expression. This enables you to subscribe to
|
||||
multiple events at once. Here's you could subscribe to everything from `ActionController`.
|
||||
|
||||
```ruby
|
||||
|
|
|
@ -1109,7 +1109,7 @@ end
|
|||
Controls what happens to the associated object when its owner is destroyed:
|
||||
|
||||
* `:destroy` causes the associated object to also be destroyed
|
||||
* `:delete` causes the asssociated object to be deleted directly from the database (so callbacks will not execute)
|
||||
* `:delete` causes the associated object to be deleted directly from the database (so callbacks will not execute)
|
||||
* `:nullify` causes the foreign key to be set to `NULL`. Callbacks are not executed.
|
||||
* `:restrict_with_exception` causes an exception to be raised if there is an associated record
|
||||
* `:restrict_with_error` causes an error to be added to the owner if there is an associated object
|
||||
|
@ -1463,7 +1463,7 @@ end
|
|||
Controls what happens to the associated objects when their owner is destroyed:
|
||||
|
||||
* `:destroy` causes all the associated objects to also be destroyed
|
||||
* `:delete_all` causes all the asssociated objects to be deleted directly from the database (so callbacks will not execute)
|
||||
* `:delete_all` causes all the associated objects to be deleted directly from the database (so callbacks will not execute)
|
||||
* `:nullify` causes the foreign keys to be set to `NULL`. Callbacks are not executed.
|
||||
* `:restrict_with_exception` causes an exception to be raised if there are any associated records
|
||||
* `:restrict_with_error` causes an error to be added to the owner if there are any associated objects
|
||||
|
|
Loading…
Reference in New Issue