diff options
author | Mark J. Titorenko <mark@titorenko.net> | 2018-11-29 18:36:20 +0000 |
---|---|---|
committer | Mark J. Titorenko <mark@titorenko.net> | 2018-11-29 18:37:06 +0000 |
commit | 8212dfcf14c63c006b9e1c37595f3d62eab052cf (patch) | |
tree | 0b01f51e99b36d1eaa57b3d86d3217bf01f79357 /activesupport/test/fixtures/concern | |
parent | 4b5c4ca377a9b5c75d2c4b4d4f63f53866553b40 (diff) | |
download | rails-8212dfcf14c63c006b9e1c37595f3d62eab052cf.tar.gz rails-8212dfcf14c63c006b9e1c37595f3d62eab052cf.tar.bz2 rails-8212dfcf14c63c006b9e1c37595f3d62eab052cf.zip |
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]
Diffstat (limited to 'activesupport/test/fixtures/concern')
-rw-r--r-- | activesupport/test/fixtures/concern/some_concern.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |