mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8212dfcf14
If the same block is included multiple times, we no longer raise an exception or overwrite the included block instance variable. Fixes #14802. [Mark J. Titorenko + Vlad Bokov]
11 lines
200 B
Ruby
11 lines
200 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "active_support/concern"
|
|
|
|
module SomeConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
# shouldn't raise when module is loaded more than once
|
|
end
|
|
end
|