Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | moves a require to the file that needs it | Xavier Noria | 2019-03-08 | 1 | -0/+2 |
| | |||||
* | Allow autoloader inflectors to be swaped out | Jean Boussier | 2019-03-08 | 1 | -2/+8 |
| | |||||
* | simplifies Rails.autoloaders.logger= | Xavier Noria | 2019-02-21 | 1 | -2/+1 |
| | | | | Possible thanks to Zeitwerk 1.3.0. | ||||
* | Define Rails.autoloaders.logger= | Xavier Noria | 2019-02-21 | 1 | -0/+5 |
| | |||||
* | Auto correct rubocop offenses | Yoshiyuki Hirano | 2019-02-17 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | Offenses: railties/lib/rails/autoloaders.rb:1:1: C: [Corrected] Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true. module Rails ^ actionmailer/test/base_test.rb:917:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning. actionmailer/test/base_test.rb:917:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. actionmailer/test/base_test.rb:917:5: C: [Corrected] Style/RedundantBegin: Redundant begin block detected. begin ^^^^^ actionmailer/test/base_test.rb:918:3: C: [Corrected] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. events = [] ^^^^ actionmailer/test/base_test.rb:930:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. actionmailer/test/base_test.rb:930:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. | ||||
* | Replace autoloader accessors with Rails.autoloaders.{main,once} | Xavier Noria | 2019-02-14 | 1 | -0/+30 |
Rails.autoloader and Rails.once_autoloader was just tentative API good enough for a first patch. Rails.autoloader is singular and does not convey in its name that there is another autoloader. That might be confusing, for example if you set a logger and miss traces. On the other hand, the name `once_autoloader` is very close to being horrible. Rails.autoloaders.main and Rails.autoloaders.once read better for my taste, and have a nice symmetry. Also, both "main" and "once" are four letters long, short and same length. They are tagged as "rails.main" and "rails.once", respectively. References #35235. |