diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-22 19:11:11 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-22 19:24:16 +0000 |
commit | 7edade337e968fb028b2b6abfa579120eb424039 (patch) | |
tree | f44f5381296ac54920a8a29f528cbcbec4bedd2f /activerecord/lib/active_record/persistence.rb | |
parent | 89e2647da6fade8397963fc0c0159eee4f3fd842 (diff) | |
download | rails-7edade337e968fb028b2b6abfa579120eb424039.tar.gz rails-7edade337e968fb028b2b6abfa579120eb424039.tar.bz2 rails-7edade337e968fb028b2b6abfa579120eb424039.zip |
Make read_attribute code path accessible at the class level
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index a2fe21043f..038355deaa 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -368,13 +368,5 @@ module ActiveRecord @new_record = false id end - - # Initializes the attributes array with keys matching the columns from the linked table and - # the values matching the corresponding default value of that column, so - # that a new instance, or one populated from a passed-in Hash, still has all the attributes - # that instances loaded from the database would. - def attributes_from_column_definition - self.class.column_defaults.dup - end end end |