Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

be more precise re :validate and :autosave

  • Loading branch information...
commit 91ae6e99333059f79aae4bca6a6caacfcc7732b3 1 parent fe2d658
@fxn fxn authored
View
8 activerecord/lib/active_record/associations.rb
@@ -954,7 +954,7 @@ module ClassMethods
# [:readonly]
# If true, all the associated objects are readonly through the association.
# [:validate]
- # If false, don't validate the associated objects when saving the parent object. true by default.
+ # If +false+, don't validate the associated objects when saving the parent object. true by default.
# [:autosave]
# If true, always save the associated objects or destroy them if marked for destruction,
# when saving the parent object. If false, never save or destroy the associated objects.
@@ -1076,7 +1076,7 @@ def has_many(association_id, options = {}, &extension)
# [:readonly]
# If true, the associated object is readonly through the association.
# [:validate]
- # If false, don't validate the associated object when saving the parent object. +false+ by default.
+ # If +false+, don't validate the associated object when saving the parent object. +false+ by default.
# [:autosave]
# If true, always save the associated object or destroy it if marked for destruction,
# when saving the parent object. If false, never save or destroy the associated object.
@@ -1189,7 +1189,7 @@ def has_one(association_id, options = {})
# [:readonly]
# If true, the associated object is readonly through the association.
# [:validate]
- # If false, don't validate the associated objects when saving the parent object. +false+ by default.
+ # If +false+, don't validate the associated objects when saving the parent object. +false+ by default.
# [:autosave]
# If true, always save the associated object or destroy it if marked for destruction, when
# saving the parent object.
@@ -1392,7 +1392,7 @@ def belongs_to(association_id, options = {})
# [:readonly]
# If true, all the associated objects are readonly through the association.
# [:validate]
- # If false, don't validate the associated objects when saving the parent object. +true+ by default.
+ # If +false+, don't validate the associated objects when saving the parent object. +true+ by default.
# [:autosave]
# If true, always save the associated objects or destroy them if marked for destruction, when
# saving the parent object.
View
3  activerecord/lib/active_record/autosave_association.rb
@@ -112,8 +112,7 @@ module ActiveRecord
#
# === Validation
#
- # Validations on children records are run or not depending on the <tt>:validate</tt>
- # option of the association.
+ # Children records are validated unless <tt>:validate</tt> is +false+.
module AutosaveAssociation
extend ActiveSupport::Concern
Please sign in to comment.
Something went wrong with that request. Please try again.