diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-03 23:24:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:43 -0300 |
commit | eef8a2c6f249d923f191491ddb10d20faa4e170a (patch) | |
tree | 1303c3bdaffee7ac5384bd2f31cd11be8af8031f /activerecord/lib/active_record | |
parent | 87c8ce340c6c83342df988df247e9035393ed7a0 (diff) | |
download | rails-eef8a2c6f249d923f191491ddb10d20faa4e170a.tar.gz rails-eef8a2c6f249d923f191491ddb10d20faa4e170a.tar.bz2 rails-eef8a2c6f249d923f191491ddb10d20faa4e170a.zip |
Remove `cache_attributes` and friends
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 11 |
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] |