aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-09-09 06:08:57 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-09-09 06:08:57 -0300
commitd9e55535164feb1a0f73a9f64c1055cc67b98121 (patch)
tree509cf0f0ae38af6d2d9571728af1c3636a00cb1a /activerecord/test/models
parentd5ba9a42a6e93b163a49f99d739aa56820e044d0 (diff)
downloadrails-d9e55535164feb1a0f73a9f64c1055cc67b98121.tar.gz
rails-d9e55535164feb1a0f73a9f64c1055cc67b98121.tar.bz2
rails-d9e55535164feb1a0f73a9f64c1055cc67b98121.zip
Revert "Merge pull request #20080 from robertjlooby/fix_overwriting_by_dynamic_finders"
This reverts commit d5ba9a42a6e93b163a49f99d739aa56820e044d0, reversing changes made to 30c503395bf6bf7db1ec0295bd661ce644628db5. Reason: This generate the dynalic finders more than one time
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/electron.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/models/electron.rb b/activerecord/test/models/electron.rb
index aacdaa71b7..6fc270673f 100644
--- a/activerecord/test/models/electron.rb
+++ b/activerecord/test/models/electron.rb
@@ -2,12 +2,4 @@ class Electron < ActiveRecord::Base
belongs_to :molecule
validates_presence_of :name
-
- cattr_reader :times_called_find_by_name
- @@times_called_find_by_name = 0
-
- def self.find_by_name(name)
- @@times_called_find_by_name += 1
- super(name)
- end
end