aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-08 15:27:43 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-08 15:27:43 -0800
commitf86b19842620301b969a4a264c97e5e6ebc7b67f (patch)
tree01c0f9f1ee9c075b88ba8ef8fd697cb99e0adbd0 /activerecord/lib/active_record/attribute_methods
parent857bd732723a6ca297195198b9796ba79226f83f (diff)
downloadrails-f86b19842620301b969a4a264c97e5e6ebc7b67f.tar.gz
rails-f86b19842620301b969a4a264c97e5e6ebc7b67f.tar.bz2
rails-f86b19842620301b969a4a264c97e5e6ebc7b67f.zip
removed unnecessary translator object
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 53014e9e58..88c81b2e01 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -1,5 +1,3 @@
-require 'active_record/attributes/translator'
-
module ActiveRecord
module AttributeMethods
module Read
@@ -139,20 +137,6 @@ module ActiveRecord
private
- def attribute_translator
- Attributes::Translator.new(@attributes, @columns_hash)
- end
-
- def cached_cast_attribute(attr_name, method)
- @attributes_cache[attr_name] ||= cast_attribute(attr_name, method)
- end
-
- def cast_attribute(attr_name, method)
- attribute_translator.cast_attribute(attr_name, method) do
- missing_attribute(attr_name, caller)
- end
- end
-
def attribute(attribute_name)
read_attribute(attribute_name)
end