aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-22 15:38:55 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-25 08:51:15 -0600
commita89f8a922d8f37245f3ca60748adc5f4c8ee88d2 (patch)
treec04fda9454dd7bcc873ea6f38da878447805f385 /activerecord/lib/active_record.rb
parent9ac1ce11ad9ec22157d2e542437c5c5cccaf58fe (diff)
downloadrails-a89f8a922d8f37245f3ca60748adc5f4c8ee88d2.tar.gz
rails-a89f8a922d8f37245f3ca60748adc5f4c8ee88d2.tar.bz2
rails-a89f8a922d8f37245f3ca60748adc5f4c8ee88d2.zip
Move behavior of `read_attribute` to `AttributeSet`
Moved `Builder` to its own file, as it started looking very weird once I added private methods to the `AttributeSet` class and the `Builder` class started to grow. Would like to refactor `fetch_value` to change to ```ruby self[name].value(&block) ``` But that requires the attributes to know about their name, which they currently do not.
Diffstat (limited to 'activerecord/lib/active_record.rb')
-rw-r--r--activerecord/lib/active_record.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb
index ab85414277..17b00bbaea 100644
--- a/activerecord/lib/active_record.rb
+++ b/activerecord/lib/active_record.rb
@@ -27,12 +27,12 @@ require 'active_model'
require 'arel'
require 'active_record/version'
+require 'active_record/attribute_set'
module ActiveRecord
extend ActiveSupport::Autoload
autoload :Attribute
- autoload :AttributeSet
autoload :Base
autoload :Callbacks
autoload :Core