method

create_database_configuration_file

rails latest stable - Class: AppGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

create_database_configuration_file(m)
private

No documentation available.

# File railties/lib/rails_generator/generators/applications/app/app_generator.rb, line 170
    def create_database_configuration_file(m)
      m.template "configs/databases/#{options[:db]}.yml", "config/database.yml", :assigns => {
        :app_name => @app_name,
        :socket   => options[:db] == "mysql" ? mysql_socket_location : nil }
    end