search for: clear_active_connection_nam

Displaying 3 results from an estimated 3 matches for "clear_active_connection_nam".

2006 Aug 13
1
establish_connection method
...ction_specification.rb. In the body of establish_connection method, def self.establish_connection(spec = nil) case spec when nil raise AdapterNotSpecified unless defined? RAILS_ENV establish_connection(RAILS_ENV) when ConnectionSpecification clear_active_connection_name @active_connection_name = name @@defined_connections[name] = spec when Symbol, String if configuration = configurations[spec.to_s] establish_connection(configuration) else raise AdapterNotSpecified, "#{spec} database is n...
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...case spec when nil raise AdapterNotSpecified unless defined? RAILS_ENV - establish_connection(RAILS_ENV) + if !establish_connection_pool(RAILS_ENV) + establish_connection(RAILS_ENV) + end when ConnectionSpecification - clear_active_connection_name + clear_active_connection_name @active_connection_name = name - @@defined_connections[name] = spec + append_spec_to_connection_pools(spec) when Symbol, String if configuration = configurations[spec.to_s] establish_connection(c...