Merge pull request #17748 from claudiob/remove-unwanted-comments-from-documentation

Mark comments that should not be in the docs [ci skip]
This commit is contained in:
Zachary Scott 2014-11-24 11:42:41 -08:00
commit 2356714cc5
4 changed files with 14 additions and 0 deletions

@ -285,7 +285,9 @@ def disable_referential_integrity #:nodoc:
end
end
#--
# DATABASE STATEMENTS ======================================
#++
def clear_cache!
super

@ -66,7 +66,9 @@ def error_number(exception)
exception.error_number if exception.respond_to?(:error_number)
end
#--
# QUOTING ==================================================
#++
def quote_string(string)
@connection.escape(string)
@ -80,7 +82,9 @@ def quoted_date(value)
end
end
#--
# CONNECTION MANAGEMENT ====================================
#++
def active?
return false unless @connection
@ -104,7 +108,9 @@ def disconnect!
end
end
#--
# DATABASE STATEMENTS ======================================
#++
def explain(arel, binds = [])
sql = "EXPLAIN #{to_sql(arel, binds.dup)}"

@ -137,7 +137,9 @@ def quote_string(string) #:nodoc:
@connection.quote(string)
end
#--
# CONNECTION MANAGEMENT ====================================
#++
def active?
if @connection.respond_to?(:stat)
@ -178,7 +180,9 @@ def reset!
end
end
#--
# DATABASE STATEMENTS ======================================
#++
def select_rows(sql, name = nil, binds = [])
@connection.query_with_result = true

@ -266,7 +266,9 @@ def quoted_date(value) #:nodoc:
end
end
#--
# DATABASE STATEMENTS ======================================
#++
def explain(arel, binds = [])
sql = "EXPLAIN QUERY PLAN #{to_sql(arel, binds)}"