Hi, this blog is no longer maintained, my new blog is here

Ruby On Rails and a Conning Israeli entrepreneur

Connection Options

i found a way to get the connection parameters (other than reading database.yml) of the current database connection.

  1. def connection_hash  
  2.   ActiveRecord::Base.connection.instance_variable_get(:@config_options)  
  3. end  

0 comments:


The Web Ask eizesus.com

Subscribe

    follow me on Twitter

    Twiters Around

    About Me

    My photo
    I am a web developer for more than 9 years, managed, cried, coded, designed and made money in this industry. now trying to do it again.

    Labels