From 8212dfcf14c63c006b9e1c37595f3d62eab052cf Mon Sep 17 00:00:00 2001 From: "Mark J. Titorenko" Date: Thu, 29 Nov 2018 18:36:20 +0000 Subject: Do nothing when the same block is included again. 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] --- activesupport/test/fixtures/concern/some_concern.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 activesupport/test/fixtures/concern/some_concern.rb (limited to 'activesupport/test/fixtures') diff --git a/activesupport/test/fixtures/concern/some_concern.rb b/activesupport/test/fixtures/concern/some_concern.rb new file mode 100644 index 0000000000..87f660a81e --- /dev/null +++ b/activesupport/test/fixtures/concern/some_concern.rb @@ -0,0 +1,11 @@ +# 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 -- cgit v1.2.3