From 2992faa45b1b3842e1df30384bba496bb315d09d Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 14 Jul 2017 12:43:00 +0900 Subject: Remove unused `Mutex_m` in Active Model --- activemodel/lib/active_model/attribute_methods.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index b3b39bf7ae..e4caf551ad 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -1,5 +1,4 @@ require "concurrent/map" -require "mutex_m" module ActiveModel # Raised when an attribute is not defined. @@ -328,9 +327,7 @@ module ActiveModel end def generated_attribute_methods #:nodoc: - @generated_attribute_methods ||= Module.new { - extend Mutex_m - }.tap { |mod| include mod } + @generated_attribute_methods ||= Module.new.tap { |mod| include mod } end private -- cgit v1.2.3