aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 23:24:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:58:43 -0300
commiteef8a2c6f249d923f191491ddb10d20faa4e170a (patch)
tree1303c3bdaffee7ac5384bd2f31cd11be8af8031f /activerecord/lib/active_record/attribute_methods
parent87c8ce340c6c83342df988df247e9035393ed7a0 (diff)
downloadrails-eef8a2c6f249d923f191491ddb10d20faa4e170a.tar.gz
rails-eef8a2c6f249d923f191491ddb10d20faa4e170a.tar.bz2
rails-eef8a2c6f249d923f191491ddb10d20faa4e170a.zip
Remove `cache_attributes` and friends
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 20f0936e52..f6ab543015 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -36,19 +36,8 @@ module ActiveRecord
extend ActiveSupport::Concern
module ClassMethods
- [:cache_attributes, :cached_attributes, :cache_attribute?].each do |method_name|
- define_method method_name do |*|
- cached_attributes_deprecation_warning(method_name)
- true
- end
- end
-
protected
- def cached_attributes_deprecation_warning(method_name)
- ActiveSupport::Deprecation.warn "Calling `#{method_name}` is no longer necessary. All attributes are cached."
- end
-
if Module.methods_transplantable?
def define_method_attribute(name)
method = ReaderMethodCache[name]