static public Method

Base.connected?

Returns true if a connection that’s accessible to this class has already been opened.

Source Code

# File active_record/connection_adapters/abstract/connection_specification.rb, line 268
def self.connected?
  active_connections[active_connection_name] ? true : false
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.