Skip to content

Commit 27c28ce

Browse files
authored
Merge pull request rails#49960 from jhawthorn/eager_load_as_callbacks
Eager load ActiveSupport::Callback procs
2 parents 7a3a432 + 42ad4d6 commit 27c28ce

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)