Skip to content

Commit c402ec7

Browse files
Add punctuation on some newly added API docs [ci skip]
1 parent f0864e3 commit c402ec7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

activerecord/lib/active_record/transactions.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ module Transactions
191191
# *Warning*: Callbacks are deduplicated according to the callback and method.
192192
# This means you cannot have multiple <tt>after_xxx_commit</tt> shortcuts calling the same method.
193193
#
194-
# after_create_commit :do_foo #This will NOT fire
194+
# after_create_commit :do_foo # This will NOT fire
195195
# after_save_commit :do_foo
196196
#
197197
# Instead, use after_commit directly
@@ -248,31 +248,31 @@ def after_commit(*args, &block)
248248

249249
# Shortcut for <tt>after_commit :hook, on: [ :create, :update ]</tt>.
250250
#
251-
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method
251+
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method.
252252
def after_save_commit(*args, &block)
253253
set_options_for_callbacks!(args, on: [ :create, :update ], **prepend_option)
254254
set_callback(:commit, :after, *args, &block)
255255
end
256256

257257
# Shortcut for <tt>after_commit :hook, on: :create</tt>.
258258
#
259-
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method
259+
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method.
260260
def after_create_commit(*args, &block)
261261
set_options_for_callbacks!(args, on: :create, **prepend_option)
262262
set_callback(:commit, :after, *args, &block)
263263
end
264264

265265
# Shortcut for <tt>after_commit :hook, on: :update</tt>.
266266
#
267-
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method
267+
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method.
268268
def after_update_commit(*args, &block)
269269
set_options_for_callbacks!(args, on: :update, **prepend_option)
270270
set_callback(:commit, :after, *args, &block)
271271
end
272272

273273
# Shortcut for <tt>after_commit :hook, on: :destroy</tt>.
274274
#
275-
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method
275+
# *Warning*: only one <tt>after_xxx_commit</tt> shortcut can call any given method.
276276
def after_destroy_commit(*args, &block)
277277
set_options_for_callbacks!(args, on: :destroy, **prepend_option)
278278
set_callback(:commit, :after, *args, &block)

0 commit comments

Comments
 (0)