Skip to content

Commit ed08eea

Browse files
Capitalize framework names [ci-skip]
1 parent 4c2fdbf commit ed08eea

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

activejob/lib/active_job/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def after_teardown # :nodoc:
6161
#
6262
# Note: The adapter provided by this method must provide some additional
6363
# methods from those expected of a standard ActiveJob::QueueAdapter
64-
# in order to be used with the active job test helpers. Refer to
64+
# in order to be used with the Active Job test helpers. Refer to
6565
# ActiveJob::QueueAdapters::TestAdapter.
6666
def queue_adapter_for_test
6767
ActiveJob::QueueAdapters::TestAdapter.new

activerecord/lib/active_record/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ class Railtie < Rails::Railtie # :nodoc:
401401
end
402402

403403
ActiveSupport.on_load(:active_record_fixture_set) do
404-
# Encrypt active record fixtures
404+
# Encrypt Active Record fixtures
405405
if ActiveRecord::Encryption.config.encrypt_fixtures
406406
ActiveRecord::Fixture.prepend ActiveRecord::Encryption::EncryptedFixtures
407407
end

activesupport/lib/active_support/core_ext/object/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# It should be noted that when using ::JSON.{generate,dump} directly, ActiveSupport's encoder is
3030
# bypassed completely. This means that as_json won't be invoked and the JSON gem will simply
3131
# ignore any options it does not natively understand. This also means that ::JSON.{generate,dump}
32-
# should give exactly the same results with or without active support.
32+
# should give exactly the same results with or without Active Support.
3333

3434
module ActiveSupport
3535
module ToJsonWithActiveSupportEncoder # :nodoc:

guides/source/active_record_callbacks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ Transaction Callbacks
500500

501501
### Dealing With Consistency
502502

503-
There are two additional callbacks that are triggered by the completion of a database transaction: [`after_commit`][] and [`after_rollback`][]. These callbacks are very similar to the `after_save` callback except that they don't execute until after database changes have either been committed or rolled back. They are most useful when your active record models need to interact with external systems which are not part of the database transaction.
503+
There are two additional callbacks that are triggered by the completion of a database transaction: [`after_commit`][] and [`after_rollback`][]. These callbacks are very similar to the `after_save` callback except that they don't execute until after database changes have either been committed or rolled back. They are most useful when your Active Record models need to interact with external systems which are not part of the database transaction.
504504

505505
Consider, for example, the previous example where the `PictureFile` model needs to delete a file after the corresponding record is destroyed. If anything raises an exception after the `after_destroy` callback is called and the transaction rolls back, the file will have been deleted and the model will be left in an inconsistent state. For example, suppose that `picture_file_2` in the code below is not valid and the `save!` method raises an error.
506506

0 commit comments

Comments
 (0)