diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2014-04-14 14:14:46 -0500 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2014-04-14 14:14:46 -0500 |
commit | c52a84f766a303a7f96d7fb9e8f863bfe914c540 (patch) | |
tree | 77f9d049410ff25cf8438efb560d7ace002512be /activerecord/lib | |
parent | a1e2db2e9bb4ca2fdf6190aa8f448fe85cf76529 (diff) | |
parent | e75314803e1548aa3b25657373003cde4567df64 (diff) | |
download | rails-c52a84f766a303a7f96d7fb9e8f863bfe914c540.tar.gz rails-c52a84f766a303a7f96d7fb9e8f863bfe914c540.tar.bz2 rails-c52a84f766a303a7f96d7fb9e8f863bfe914c540.zip |
Merge pull request #14729 from akshay-vishnoi/doc_changes
[ci skip] Improve doc, fix grammatical issue
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index 9d92e747d4..e6195e48a5 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -485,10 +485,10 @@ module ActiveRecord end # Takes in a limit and checks if the attributes_collection has too many - # records. The method will take limits in the form of symbols, procs, and - # number-like objects (anything that can be compared with an integer). + # records. It accepts limit in the form of symbol, proc, or + # number-like object (anything that can be compared with an integer). # - # Will raise an TooManyRecords error if the attributes_collection is + # Raises TooManyRecords error if the attributes_collection is # larger than the limit. def check_record_limit!(limit, attributes_collection) if limit @@ -519,7 +519,7 @@ module ActiveRecord ConnectionAdapters::Column.value_to_boolean(hash['_destroy']) end - # Determines if a new record should be build by checking for + # Determines if a new record should be rejected by checking # has_destroy_flag? or if a <tt>:reject_if</tt> proc exists for this # association and evaluates to +true+. def reject_new_record?(association_name, attributes) |