aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-07-24 15:38:40 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-25 05:28:29 +0900
commitf0e6ecc9966f5a569313658bedff54bde8517e65 (patch)
treef9e56fc0d111ceec679dd38cbd5b1149cb29ece7 /activerecord/lib/active_record
parent45955aed0085c453917aac2e2e5fbe5f3e73f705 (diff)
downloadrails-f0e6ecc9966f5a569313658bedff54bde8517e65.tar.gz
rails-f0e6ecc9966f5a569313658bedff54bde8517e65.tar.bz2
rails-f0e6ecc9966f5a569313658bedff54bde8517e65.zip
`get_value` and `set_value` in `Relation` are no longer used externally
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 812c8e7e3f..ee49930c90 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -901,16 +901,17 @@ module ActiveRecord
@arel ||= build_arel
end
- # Returns a relation value with a given name
- def get_value(name) # :nodoc:
- @values[name] || default_value_for(name)
- end
+ protected
+ # Returns a relation value with a given name
+ def get_value(name) # :nodoc:
+ @values[name] || default_value_for(name)
+ end
- # Sets the relation value with the given name
- def set_value(name, value) # :nodoc:
- assert_mutability!
- @values[name] = value
- end
+ # Sets the relation value with the given name
+ def set_value(name, value) # :nodoc:
+ assert_mutability!
+ @values[name] = value
+ end
private