1. 12 2月, 2017 2 次提交
    • X
      refactors and fixes in guides generation [ci skip] · 771a802c
      Xavier Noria 提交于
      This commit is not precisely atomic, but the changes have evolved, summary:
      
      * The ENV-based interface has been moved upwards, the generator has now a conventional
        initializer.
      
      * RAILS_VERSION is now assumed to be a Git tag. A blank RAILS_VERSION means edge guides.
      
      * In consequence, the EDGE env variable is gone.
      
      * The "local" version is also gone, the current SHA1 is computed for edge guides.
      
      * Assumes guides are generated from a repo checkout (time ago users could
        generate them from gems.)
      
      * The WARNINGS flag is gone in consequence, you cannot disable warnings.
      
      * The `api_link` Markdown helper is fixed.
      
      * Docs about usage have one single place: rake guides:help.
      
      * Links in guides have been revised.
      771a802c
    • K
      [ci skip] Fully qualify missing template error. · eb4aba00
      Kasper Timm Hansen 提交于
      Switch extension 👉 format as it's more apt here.
      eb4aba00
  2. 10 2月, 2017 2 次提交
  3. 09 2月, 2017 1 次提交
  4. 08 2月, 2017 3 次提交
  5. 06 2月, 2017 1 次提交
  6. 04 2月, 2017 1 次提交
    • M
      Fix typo in guide: _articles should be _article · d9ba3b1e
      Matthew Eagar 提交于
      The guide contains a typo in the "local_assigns" section, where
      rendering a model named 'Article' via `render @articles` is shown to
      render a partial called `_articles.html.erb`, when in fact the necessary
      partial name is `_article.html.erb`
      d9ba3b1e
  7. 31 1月, 2017 1 次提交
  8. 28 1月, 2017 1 次提交
  9. 26 1月, 2017 1 次提交
  10. 21 1月, 2017 1 次提交
  11. 20 1月, 2017 1 次提交
  12. 19 1月, 2017 1 次提交
  13. 18 1月, 2017 2 次提交
  14. 17 1月, 2017 1 次提交
    • Y
      allow to pass describe option to rake · 073f4ecb
      yuuji.yaginuma 提交于
      Since `Thor::HELP_MAPPINGS` contains `-D`, so `bin/rails -D` show
      rails's help. But, in Rails 5.0.1, `bin/rails -D` show the description
      of rake task. I think that it is better to have the same behavior.
      073f4ecb
  15. 16 1月, 2017 1 次提交
  16. 15 1月, 2017 1 次提交
  17. 12 1月, 2017 1 次提交
  18. 10 1月, 2017 1 次提交
    • A
      Fix inconsistent results when parsing large durations and constructing durations from code · cb9d0e48
      Andrey Novikov 提交于
          ActiveSupport::Duration.parse('P3Y') == 3.years # It should be true
      
      Duration parsing made independent from any moment of time:
      Fixed length in seconds is assigned to each duration part during parsing.
      
      Changed duration of months and years in seconds to more accurate and logical:
      
       1. The value of 365.2425 days in Gregorian year is more accurate
          as it accounts for every 400th non-leap year.
      
       2. Month's length is bound to year's duration, which makes
          sensible comparisons like `12.months == 1.year` to be `true`
          and nonsensical ones like `30.days == 1.month` to be `false`.
      
      Calculations on times and dates with durations shouldn't be affected as
      duration's numeric value isn't used in calculations, only parts are used.
      
      Methods on `Numeric` like `2.days` now use these predefined durations
      to avoid duplicating of duration constants through the codebase and
      eliminate creation of intermediate durations.
      cb9d0e48
  19. 09 1月, 2017 1 次提交
  20. 05 1月, 2017 1 次提交
  21. 04 1月, 2017 1 次提交
  22. 03 1月, 2017 1 次提交
    • D
      Clarify Bi-directional Associations docs · 186327f7
      David Sherline 提交于
      Rails automatically finds bi-directional associations between models
      with well-named associations. However, when using non-standard naming,
      you have to use :inverse_of to explicitly tell Rails about the bi-
      directional association.
      
      With reference to #27516
      
      [ci skip]
      186327f7
  23. 01 1月, 2017 1 次提交
  24. 30 12月, 2016 1 次提交
  25. 29 12月, 2016 2 次提交
  26. 25 12月, 2016 2 次提交
  27. 24 12月, 2016 2 次提交
  28. 22 12月, 2016 1 次提交
  29. 21 12月, 2016 1 次提交
  30. 18 12月, 2016 1 次提交
  31. 17 12月, 2016 1 次提交
  32. 15 12月, 2016 1 次提交
    • B
      Add note on defaults block option · 6a116bd9
      Brandon Weaver 提交于
      When I was looking for how to default the entire routes file to JSON I could only find the postfix option. It was mentioned on IRC that you could do this with a block as well and I had not found it in the documentation.
      6a116bd9