aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2016-05-04 11:47:08 -0500
committerArthur Neves <arthurnn@gmail.com>2016-05-05 15:29:11 -0500
commit314cf0398c6b8a76ee9fe86ba8c2926d3b54ab28 (patch)
tree0dc83c7ab22b3142fd4a99fe46b8a60337035892 /activerecord
parentb83fb847337b690ebbc96c55414157f71bbf8aa2 (diff)
downloadrails-314cf0398c6b8a76ee9fe86ba8c2926d3b54ab28.tar.gz
rails-314cf0398c6b8a76ee9fe86ba8c2926d3b54ab28.tar.bz2
rails-314cf0398c6b8a76ee9fe86ba8c2926d3b54ab28.zip
Rename method
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_handling.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_handling.rb b/activerecord/lib/active_record/connection_handling.rb
index c54b8adc4e..8246c12ea8 100644
--- a/activerecord/lib/active_record/connection_handling.rb
+++ b/activerecord/lib/active_record/connection_handling.rb
@@ -96,15 +96,15 @@ module ActiveRecord
def specification_id(fallback = true)
return @specification_id if defined?(@specification_id)
- find_legacy_spec_id(self) if fallback
+ find_parent_spec_id(self) if fallback
end
- def find_legacy_spec_id(klass)
+ def find_parent_spec_id(klass)
return "primary" if klass == Base
if id = klass.specification_id(false)
return id
end
- find_legacy_spec_id(klass.superclass)
+ find_parent_spec_id(klass.superclass)
end
def connection_id