aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoemj <olli.rissanen@helsinki.fi>2013-04-30 23:36:46 +0300
committerNoemj <olli.rissanen@helsinki.fi>2013-04-30 23:36:46 +0300
commite2a58b2921dc423c716e2a22cde4504a092c4261 (patch)
tree01dfbd3b3db199dd992c9217c5b9b8d2e7d302bf
parent9693df61f0143218da6f902021734441312f9d12 (diff)
downloadrails-e2a58b2921dc423c716e2a22cde4504a092c4261.tar.gz
rails-e2a58b2921dc423c716e2a22cde4504a092c4261.tar.bz2
rails-e2a58b2921dc423c716e2a22cde4504a092c4261.zip
Added :nodoc: for private methods
-rw-r--r--activerecord/lib/active_record/relation.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index ad33e398be..913f6f88f2 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -39,7 +39,7 @@ module ActiveRecord
reset
end
- def insert(values)
+ def insert(values) # :nodoc:
primary_key_value = nil
if primary_key && Hash === values
@@ -73,7 +73,7 @@ module ActiveRecord
binds)
end
- def update_record(values, id, id_was)
+ def update_record(values, id, id_was) # :nodoc:
substitutes, binds = substitute_values values
um = @klass.unscoped.where(@klass.arel_table[@klass.primary_key].eq(id_was || id)).arel.compile_update(substitutes)
@@ -83,7 +83,7 @@ module ActiveRecord
binds)
end
- def substitute_values(values)
+ def substitute_values(values) # :nodoc:
substitutes = values.sort_by { |arel_attr,_| arel_attr.name }
binds = substitutes.map do |arel_attr, value|
[@klass.columns_hash[arel_attr.name], value]