Permalink
Browse files

Merge pull request #14762 from dwo/master

use YAML.load_file in database tasks example
  • Loading branch information...
2 parents 5a0d804 + b335def commit ccdea7bc83417e9b9ee4843976fff93c5c7cee32 @arthurnn arthurnn committed Apr 15, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/tasks/database_tasks.rb
@@ -28,7 +28,7 @@ class DatabaseNotSupported < StandardError; end # :nodoc:
# Example usage of +DatabaseTasks+ outside Rails could look as such:
#
# include ActiveRecord::Tasks
- # DatabaseTasks.database_configuration = YAML.load(File.read('my_database_config.yml'))
+ # DatabaseTasks.database_configuration = YAML.load_file('my_database_config.yml')
# DatabaseTasks.db_dir = 'db'
# # other settings...
#

0 comments on commit ccdea7b

Please sign in to comment.