Re: [Rails] is this line of code right in Ruby 1.9.2 / Rails 3

2011-02-02 Thread Bente Pieck
Is this part of a capistrano script? If so then it uses the value in deploy.rb where set :db_file is defined. (Perhaps look here: https://github.com/leehambley/capistrano-handbook/blob/master/index.markdown )

[Rails] is this line of code right in Ruby 1.9.2 / Rails 3

2011-02-02 Thread Erwin
I am looking at a ruby script and testing it... I don't fully understand the following line of code : database = YAML::load_file("config/#{fetch(:db_file, 'database.yml')}") => fetch(:db_file, 'database.yml') ...what's is this function fetch() ? I know the fetch(key, *extras) in ActiveS