1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/CHANGELOG.md
Pier-Olivier Thibault d14fab04ff Use Rails::Paths::Path#existent in database_configuration
Database configuration was trying to load the first path that
config.paths['config/database'] was returning even if the path didn't
exist in the filesystem.

Because Rails::Paths::Path has the possibility to return more than 1
path (as an array), database_configuration should filter down the paths
to the existing one and then load the first one.

This would make it possible to move the database.yml file and add the
new path to paths['config/database'] and still load the configurations.
2014-05-07 18:18:00 -04:00

1.9 KiB

  • Load database configuration from the first database.yml available in paths.

    Pier-Olivier Thibault

  • Reading name and email from git for plugin gemspec.

    Fixes #9589.

    Arun Agrawal, Abd ar-Rahman Hamidi, Roman Shmatov

  • Fix console and generators blocks defined at different environments.

    Fixes #14748.

    Rafael Mendonça França

  • Move configuration of asset precompile list and version to an initializer.

    Matthew Draper

  • Do not set the Rails environment to test by default when using test_unit Railtie.

    Konstantin Shabanov

  • Remove sqlite3 lines from .gitignore if the application is not using sqlite3.

    Dmitrii Golub

  • Add public API to register new extensions for rake notes.

    Example:

    config.annotations.register_extensions("scss", "sass") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
    

    Roberto Miranda

  • Removed unnecessary rails application command.

    Arun Agrawal

  • Make the rails:template rake task load the application's initializers.

    Fixes #12133.

    Robin Dupret

  • Introduce Rails.gem_version as a convenience method to return Gem::Version.new(Rails.version), suggesting a more reliable way to perform version comparison.

    Example:

    Rails.version #=> "4.1.2"
    Rails.gem_version #=> #<Gem::Version "4.1.2">
    
    Rails.version > "4.1.10" #=> false
    Rails.gem_version > Gem::Version.new("4.1.10") #=> true
    Gem::Requirement.new("~> 4.1.2") =~ Rails.gem_version #=> true
    

    Prem Sichanugrist

  • Avoid namespacing routes inside engines.

    Mountable engines are namespaced by default so the generated routes were too while they should not.

    Fixes #14079.

    Yves Senn, Carlos Antonio da Silva, Robin Dupret

Please check 4-1-stable for previous changes.