diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-09-10 16:25:51 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-09-10 16:54:28 +0900 |
commit | 4828408f0a82211731a02f62007ac99fd6bbd73a (patch) | |
tree | 4d7f4acf38d8d223d3894073cd697859c9ad0522 /activerecord/lib/active_record/attribute_set | |
parent | 0f40becce055d236067e8d656107d98ca20a0614 (diff) | |
download | rails-4828408f0a82211731a02f62007ac99fd6bbd73a.tar.gz rails-4828408f0a82211731a02f62007ac99fd6bbd73a.tar.bz2 rails-4828408f0a82211731a02f62007ac99fd6bbd73a.zip |
Explicitly require AR/attribute where using it
autoloading this could possibly cause some weird race condition
when calling an AR::Attribute's singleton method on a threaded server.
Diffstat (limited to 'activerecord/lib/active_record/attribute_set')
-rw-r--r-- | activerecord/lib/active_record/attribute_set/builder.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute_set/builder.rb b/activerecord/lib/active_record/attribute_set/builder.rb index e85777c335..0c730d313f 100644 --- a/activerecord/lib/active_record/attribute_set/builder.rb +++ b/activerecord/lib/active_record/attribute_set/builder.rb @@ -1,3 +1,5 @@ +require 'active_record/attribute' + module ActiveRecord class AttributeSet # :nodoc: class Builder # :nodoc: |