diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-11-08 23:16:54 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-11-08 23:16:54 +0200 |
commit | 3c580182ff3c16d2247aabc85100bf8c6edb0f82 (patch) | |
tree | 411093dd3a3767e1acb637f32dea14213b8e62f3 /activerecord/lib/active_record/connection_handling.rb | |
parent | c04abbaa6366771db7434dea32f4f5b747fda1dc (diff) | |
download | rails-3c580182ff3c16d2247aabc85100bf8c6edb0f82.tar.gz rails-3c580182ff3c16d2247aabc85100bf8c6edb0f82.tar.bz2 rails-3c580182ff3c16d2247aabc85100bf8c6edb0f82.zip |
1.9 hash syntax changes
Diffstat (limited to 'activerecord/lib/active_record/connection_handling.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_handling.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/connection_handling.rb b/activerecord/lib/active_record/connection_handling.rb index 8ce7a7a463..d6d998c7be 100644 --- a/activerecord/lib/active_record/connection_handling.rb +++ b/activerecord/lib/active_record/connection_handling.rb @@ -5,18 +5,18 @@ module ActiveRecord # example for regular databases (MySQL, Postgresql, etc): # # ActiveRecord::Base.establish_connection( - # :adapter => "mysql", - # :host => "localhost", - # :username => "myuser", - # :password => "mypass", - # :database => "somedatabase" + # adapter: "mysql", + # host: "localhost", + # username: "myuser", + # password: "mypass", + # database: "somedatabase" # ) # # Example for SQLite database: # # ActiveRecord::Base.establish_connection( - # :adapter => "sqlite", - # :database => "path/to/dbfile" + # adapter: "sqlite", + # database: "path/to/dbfile" # ) # # Also accepts keys as strings (for parsing from YAML for example): @@ -64,7 +64,7 @@ module ActiveRecord # Returns the configuration of the associated connection as a hash: # # ActiveRecord::Base.connection_config - # # => {:pool=>5, :timeout=>5000, :database=>"db/development.sqlite3", :adapter=>"sqlite3"} + # # => {pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"} # # Please use only for reading. def connection_config |