aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 17:15:53 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 17:15:53 -0200
commit0abd0b54f06c8dc448846e0dc1b287ee4f957868 (patch)
treeb2f739b9d3bc5f1ca846a0360af92406f46bb284 /activerecord/lib/active_record/core.rb
parente7e72ec7d7a5869a070c086cf5d5b2cb869e19a6 (diff)
downloadrails-0abd0b54f06c8dc448846e0dc1b287ee4f957868.tar.gz
rails-0abd0b54f06c8dc448846e0dc1b287ee4f957868.tar.bz2
rails-0abd0b54f06c8dc448846e0dc1b287ee4f957868.zip
Mark some methods as nodoc
They are implementation details
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index e77e49a8c7..44d587206d 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -107,16 +107,16 @@ module ActiveRecord
super
end
- def initialize_find_by_cache
+ def initialize_find_by_cache # :nodoc:
self.find_by_statement_cache = {}.extend(Mutex_m)
end
- def inherited(child_class)
+ def inherited(child_class) # :nodoc:
child_class.initialize_find_by_cache
super
end
- def find(*ids)
+ def find(*ids) # :nodoc:
# We don't have cache keys for this stuff yet
return super unless ids.length == 1
return super if block_given? ||
@@ -150,7 +150,7 @@ module ActiveRecord
raise RecordNotFound, "Couldn't find #{name} with an out of range value for '#{primary_key}'"
end
- def find_by(*args)
+ def find_by(*args) # :nodoc:
return super if current_scope || !(Hash === args.first) || reflect_on_all_aggregations.any?
return super if default_scopes.any?
@@ -183,11 +183,11 @@ module ActiveRecord
end
end
- def find_by!(*args)
+ def find_by!(*args) # :nodoc:
find_by(*args) or raise RecordNotFound.new("Couldn't find #{name}")
end
- def initialize_generated_modules
+ def initialize_generated_modules # :nodoc:
generated_association_methods
end