Commit Graph

10 Commits

Author SHA1 Message Date
Xavier Noria
783763bde9 applies new string literal convention in railties/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:16:09 +02:00
Guillermo Iguaran
c62ac07be8 Merge pull request #25652 from prathamesh-sonpatki/rm-boot-rails
Remove unused boot_rails method and it's usage
2016-07-08 14:50:24 -05:00
David Feldman
5086432097 implement respond_to_missing? to match method_missing 2016-07-05 12:28:12 -05:00
Prathamesh Sonpatki
d93427840e
Remove unused boot_rails method and it's usage
- The `boot_rails` method from abstract_unit.rb is empty after 2abcdfd978fdcd491576a237e8c6b.
- So let's remove it and its usage.
2016-07-04 09:34:21 +05:30
Ankit Gupta
533a73c125 removing unused and already required require's
custom test - Does not include EnvHelpers and the require is not needed
path generation test - require abstract_unit which has .  rails/all requires rails and corresponding
2015-05-11 11:33:28 -04:00
Rafael Mendonça França
35867c0bee Remove unneeded base file
We are only using for one test class
2015-05-03 21:25:56 -03:00
Carlos Antonio da Silva
2f7ac9cdcc Fix setting simple values to the new config.x
Previously setting simple values to the config.x object resulted in the
following:

    config.x.super_debugger = true
    config.x.super_debugger #=> {}

Which was against the examples showed in the changelog/release notes.
2014-08-19 21:59:01 -03:00
Rafael Mendonça França
43073b393d Revert "Improve custom configuration"
This reverts commit de4891344ccc074f6d5693f4fac6ad610584e336.

Conflicts:
	railties/lib/rails/railtie/configuration.rb

It added regression. Will be back after the beta
2014-08-19 19:41:15 -03:00
Rafael Mendonça França
de4891344c Improve custom configuration
1. Hashes can be assigned
2. We don't need a special level anymore

The method chain only works in the top level.

If users need a second level they need to assign a OrderedOptions to the
key:

    config.resque.server = ActiveSupport::OrderedOptions.new
    config.resque.server.url = "http://localhost"
    config.resque.server.port = 3000

[Rafael Mendonça França + Carlos Antonio da Silva]
2014-08-19 13:59:22 -03:00
David Heinemeier Hansson
611849772d Pull in the custom configuration concept from dhh/custom_configuration 2014-08-03 15:48:14 -07:00