Mark comments that should not be in the docs
Some comments that are meant to separate blocks of code in a file show up on http://api.rubyonrails.org as though they were part of the documentation. This commit hides those comments from the documentation. Stems from the discussion with @zzak at https://github.com/voloko/sdoc/issues/79#issuecomment-64158738 [ci skip]
This commit is contained in:
parent
96393c53f2
commit
83821e2c4a
@ -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)}"
|
||||
|
Loading…
Reference in New Issue
Block a user