Permalink
Browse files

Merge pull request #30510 from yhirano55/add_nodoc_to_activerecord

Add :nodoc: to activerecord [ci skip]
  • Loading branch information...
eileencodes committed Nov 25, 2017
2 parents 0f79ab9 + 913742a commit 8c750ffb92a8e5ee5661875c52dbc1a7686fb1bc
@@ -44,7 +44,7 @@ class AbstractMysqlAdapter < AbstractAdapter
json: { name: "json" },
}
class StatementPool < ConnectionAdapters::StatementPool
class StatementPool < ConnectionAdapters::StatementPool # :nodoc:
private def dealloc(stmt)
stmt[:stmt].close
end
@@ -110,7 +110,7 @@ def change_table(table_name, options = {}) # :nodoc:
private
module StraightReversions
module StraightReversions # :nodoc:
private
{ transaction: :transaction,
execute_block: :execute_block,
@@ -11,23 +11,23 @@ module Scoping
include Named
end
module ClassMethods
def current_scope(skip_inherited_scope = false) # :nodoc:
module ClassMethods # :nodoc:
def current_scope(skip_inherited_scope = false)
ScopeRegistry.value_for(:current_scope, self, skip_inherited_scope)
end
def current_scope=(scope) #:nodoc:
def current_scope=(scope)
ScopeRegistry.set_value_for(:current_scope, self, scope)
end
# Collects attributes from scopes that should be applied when creating
# an AR instance for the particular class this is called on.
def scope_attributes # :nodoc:
def scope_attributes
all.scope_for_create
end
# Are there attributes associated with this scope?
def scope_attributes? # :nodoc:
def scope_attributes?
current_scope
end
end

0 comments on commit 8c750ff

Please sign in to comment.