aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-07-14 12:43:00 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-14 13:08:44 +0900
commit2992faa45b1b3842e1df30384bba496bb315d09d (patch)
tree7c6b4fbf6b5ccdb0b6be7e01ccf465d3fe90c408 /activemodel/lib
parentc1f9fa8c69590222fac43d58bf64ef4a1225d7ce (diff)
downloadrails-2992faa45b1b3842e1df30384bba496bb315d09d.tar.gz
rails-2992faa45b1b3842e1df30384bba496bb315d09d.tar.bz2
rails-2992faa45b1b3842e1df30384bba496bb315d09d.zip
Remove unused `Mutex_m` in Active Model
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb5
1 files changed, 1 insertions, 4 deletions
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