From fed7d334f2904afc0955a6496859a8779f3d965e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Mar 2006 03:06:40 +0000 Subject: Fixed documentation git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../connection_adapters/abstract/connection_specification.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'activerecord/lib/active_record/connection_adapters/abstract') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index 8b70b2f047..2cdc8af688 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -38,7 +38,7 @@ module ActiveRecord end # set concurrency support flag (not thread safe, like most of the methods in this file) - def allow_concurrency=(threaded) + def allow_concurrency=(threaded) #:nodoc: logger.debug "allow_concurrency=#{threaded}" if logger return if @@allow_concurrency == threaded clear_all_cached_connections! @@ -51,7 +51,7 @@ module ActiveRecord log_connections if logger end - def active_connection_name + def active_connection_name #:nodoc: @active_connection_name ||= if active_connections[name] || @@defined_connections[name] name @@ -62,7 +62,7 @@ module ActiveRecord end end - def clear_active_connection_name + def clear_active_connection_name #:nodoc: @active_connection_name = nil subclasses.each { |klass| klass.clear_active_connection_name } end @@ -88,7 +88,7 @@ module ActiveRecord end # Verify active connections. - def verify_active_connections! + def verify_active_connections! #:nodoc: if @@allow_concurrency remove_stale_cached_threads!(@@active_connections) do |name, conn| conn.disconnect! @@ -244,7 +244,7 @@ module ActiveRecord end # Set the connection for the class. - def self.connection=(spec) + def self.connection=(spec) #:nodoc: if spec.kind_of?(ActiveRecord::ConnectionAdapters::AbstractAdapter) active_connections[name] = spec elsif spec.kind_of?(ConnectionSpecification) @@ -257,7 +257,7 @@ module ActiveRecord end # connection state logging - def self.log_connections + def self.log_connections #:nodoc: if logger logger.info "Defined connections: #{@@defined_connections.inspect}" logger.info "Active connections: #{active_connections.inspect}" -- cgit v1.2.3