Skip to content

Commit 42ad4d6

Browse files
committed
Eager load ActiveSupport::Callback procs
Follow up to previous commit where these procs were allows to be shared between subclasses. This change allocates the procs as they are first declared.
1 parent 253cddd commit 42ad4d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

activesupport/lib/active_support/callbacks.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ def initialize(name, filter, kind, options, chain_config)
250250
@filter = filter
251251
@if = check_conditionals(options[:if])
252252
@unless = check_conditionals(options[:unless])
253+
254+
compiled
253255
end
254256

255257
def merge_conditional_options(chain, if_option:, unless_option:)

0 commit comments

Comments
 (0)