From 879918b586535e2a76f345113fa1282daaf395ac Mon Sep 17 00:00:00 2001 From: utilum Date: Thu, 12 Mar 2020 10:49:31 +0100 Subject: [PATCH] Fix variable not initialized warnings ``` activesupport/test/concern_test.rb:20: warning: instance variable @included_ran not initialized activesupport/test/concern_test.rb:28: warning: instance variable @prepended_ran not initialized ``` --- activesupport/test/concern_test.rb | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/activesupport/test/concern_test.rb b/activesupport/test/concern_test.rb index 0f46a594d9..e7661a0489 100644 --- a/activesupport/test/concern_test.rb +++ b/activesupport/test/concern_test.rb @@ -8,25 +8,11 @@ class ConcernTest < ActiveSupport::TestCase extend ActiveSupport::Concern class_methods do + attr_accessor :included_ran, :prepended_ran + def baz "baz" end - - def included_ran=(value) - @included_ran = value - end - - def included_ran - @included_ran - end - - def prepended_ran=(value) - @prepended_ran = value - end - - def prepended_ran - @prepended_ran - end end included do