@@ -191,7 +191,7 @@ module Transactions
191
191
# *Warning*: Callbacks are deduplicated according to the callback and method.
192
192
# This means you cannot have multiple <tt>after_xxx_commit</tt> shortcuts calling the same method.
193
193
#
194
- # after_create_commit :do_foo #This will NOT fire
194
+ # after_create_commit :do_foo # This will NOT fire
195
195
# after_save_commit :do_foo
196
196
#
197
197
# Instead, use after_commit directly
@@ -248,31 +248,31 @@ def after_commit(*args, &block)
248
248
249
249
# Shortcut for <tt>after_commit :hook, on: [ :create, :update ]</tt>.
250
250
#
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.
252
252
def after_save_commit ( *args , &block )
253
253
set_options_for_callbacks! ( args , on : [ :create , :update ] , **prepend_option )
254
254
set_callback ( :commit , :after , *args , &block )
255
255
end
256
256
257
257
# Shortcut for <tt>after_commit :hook, on: :create</tt>.
258
258
#
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.
260
260
def after_create_commit ( *args , &block )
261
261
set_options_for_callbacks! ( args , on : :create , **prepend_option )
262
262
set_callback ( :commit , :after , *args , &block )
263
263
end
264
264
265
265
# Shortcut for <tt>after_commit :hook, on: :update</tt>.
266
266
#
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.
268
268
def after_update_commit ( *args , &block )
269
269
set_options_for_callbacks! ( args , on : :update , **prepend_option )
270
270
set_callback ( :commit , :after , *args , &block )
271
271
end
272
272
273
273
# Shortcut for <tt>after_commit :hook, on: :destroy</tt>.
274
274
#
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.
276
276
def after_destroy_commit ( *args , &block )
277
277
set_options_for_callbacks! ( args , on : :destroy , **prepend_option )
278
278
set_callback ( :commit , :after , *args , &block )
0 commit comments