i found a way to get the connection parameters (other than reading database.yml) of the current database connection.
- def connection_hash
- ActiveRecord::Base.connection.instance_variable_get(:@config_options)
- end
Ruby On Rails and a Conning Israeli entrepreneur
i found a way to get the connection parameters (other than reading database.yml) of the current database connection.
0 comments:
Post a Comment