1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/fixtures/concern/some_concern.rb
Mark J. Titorenko 8212dfcf14 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]
2018-11-29 18:37:06 +00:00

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