1. 19 1月, 2016 1 次提交
  2. 31 12月, 2015 1 次提交
  3. 22 12月, 2015 2 次提交
  4. 18 12月, 2015 1 次提交
  5. 17 12月, 2015 1 次提交
  6. 16 12月, 2015 1 次提交
    • G
      Introduce ApplicationRecord, an Active Record layer supertype · 2067fff9
      Genadi Samokovarov 提交于
      It's pretty common for folks to monkey patch `ActiveRecord::Base` to
      work around an issue or introduce extra functionality. Instead of
      shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can
      hold all those custom work the apps may need.
      
      Now, we don't wanna encourage all of the application models to inherit
      from `ActiveRecord::Base`, but we can encourage all the models that do,
      to inherit from `ApplicationRecord`.
      
      Newly generated applications have `app/models/application_record.rb`
      present by default. The model generators are smart enough to recognize
      that newly generated models have to inherit from `ApplicationRecord`,
      but only if it's present.
      2067fff9
  7. 15 12月, 2015 1 次提交
  8. 14 12月, 2015 1 次提交
  9. 30 10月, 2015 1 次提交
  10. 24 9月, 2015 1 次提交
  11. 18 6月, 2015 2 次提交
  12. 30 5月, 2015 1 次提交
    • Y
      Generate a `.keep` file in `tmp` folder · f06ce4c1
      Yoong Kang Lim 提交于
      A lot of scripts assumes the existence of this folder and most would fail if it
      is absent.
      
      One example of this is `rake restart` (before the previous commit) – it tries to
      `touch tmp/restart.txt`, which would fail if `tmp` does not exist, which was the
      case for a freshly-cloned project as `tmp` is `.gitignored` by default.
      
      See #20299.
      
      [Yoong Kang Lim, Sunny Juneja]
      f06ce4c1
  13. 20 4月, 2015 1 次提交
  14. 24 3月, 2015 1 次提交
  15. 19 3月, 2015 1 次提交
  16. 22 2月, 2015 1 次提交
  17. 07 2月, 2015 2 次提交
    • X
      README.rdoc -> README.md for newly generated applications · 89a12c93
      Xavier Noria 提交于
      README.rdoc was generated to support the doc:app task. Now that
      this task is gone we can switch to Markdown, which is nowadays
      a better default.
      89a12c93
    • X
      Remove documentation tasks · cd7cc525
      Xavier Noria 提交于
      This patch removes the tasks doc:app, doc:rails, and doc:guides.
      
      In our experience applications do not generate APIs using doc:app.
      Methods may be certainly documented for maintainers, annotated
      with YARD tags, etc. but that is intended to be read with the
      source code, not in a separate website. Then, teams also have
      typically selected topics written down in Markdown files, or in
      a GitHub wiki... that kind of thing.
      
      If a team absolutely needs to generate application documentation
      for internal purposes, they can still easily write their own task.
      
      Regarding doc:rails and doc:guides, we live in 2015. We are used
      to go to online docs all the time. If you really want access to the
      API offline RubyGems generates it for every Rails component unless
      you tell it not to, and you can checkout the Rails source code to
      read the guides as Markdown, or download them for a Kindle reader.
      
      All in all, maintaining this code does not seem to be worthwhile
      anymore.
      
      As a consequence of this, guides (+3 MB uncompressed) won't be
      distributed with the rails gem anymore. Of course, guides and API
      are going to be still part of releases, since documentation is
      maintained alongside code and tests.
      
      Also, time permitting, this will allow us to experiment with novel
      ways to generate documentation in the Rails docs server, since
      right now we were constrained by being able to generate them in
      the user's environment.
      cd7cc525
  18. 28 1月, 2015 2 次提交
  19. 14 1月, 2015 1 次提交
  20. 05 1月, 2015 1 次提交
  21. 03 1月, 2015 1 次提交
    • C
      Add config to halt callback chain on return false · 9c65c539
      claudiob 提交于
      This stems from [a comment](rails#17227 (comment)) by @dhh.
      In summary:
      
      * New Rails 5.0 apps will not accept `return false` as a way to halt callback chains, and will not display a deprecation warning.
      * Existing apps ported to Rails 5.0 will still accept `return false` as a way to halt callback chains, albeit with a deprecation warning.
      
      For this purpose, this commit introduces a Rails configuration option:
      
      ```ruby
      config.active_support.halt_callback_chains_on_return_false
      ```
      
      For new Rails 5.0 apps, this option will be set to `false` by a new initializer
      `config/initializers/callback_terminator.rb`:
      
      ```ruby
      Rails.application.config.active_support.halt_callback_chains_on_return_false = false
      ```
      
      For existing apps ported to Rails 5.0, the initializers above will not exist.
      Even running `rake rails:update` will not create this initializer.
      
      Since the default value of `halt_callback_chains_on_return_false` is set to
      `true`, these apps will still accept `return true` as a way to halt callback
      chains, displaying a deprecation warning.
      
      Developers will be able to switch to the new behavior (and stop the warning)
      by manually adding the line above to their `config/application.rb`.
      
      A gist with the suggested release notes to add to Rails 5.0 after this
      commit is available at https://gist.github.com/claudiob/614c59409fb7d11f2931
      9c65c539
  22. 02 1月, 2015 1 次提交
  23. 23 12月, 2014 2 次提交
  24. 14 12月, 2014 1 次提交
  25. 28 10月, 2014 1 次提交
  26. 27 10月, 2014 1 次提交
  27. 24 9月, 2014 1 次提交
  28. 21 8月, 2014 1 次提交
  29. 09 8月, 2014 1 次提交
  30. 03 8月, 2014 1 次提交
    • S
      Add an after_bundle callback in Rails templates · 097b2101
      Stefan Kanev 提交于
      The template runs before the generation of binstubs – this does not
      allow to write one, that makes an initial commit to version control.
      It is solvable by adding an after_bundle callback.
      097b2101
  31. 31 7月, 2014 3 次提交
  32. 24 7月, 2014 1 次提交
    • R
      Set Psych as the YAML engine for Rubinius · 558f8aa2
      Robin Dupret 提交于
      Since the rubysl-yaml gem doesn't ship with Psych by default because of
      its dependency on libyaml, on Rubinius, the default engine is Syck.
      
      However, if we want to be able to run the application safely on
      different rubies, we need to make people using Rubinius rely on Psych.
      
      See http://git.io/uuLVag for further information.
      558f8aa2
  33. 20 7月, 2014 1 次提交
    • R
      Stop requiring mocha automatically · fd6aaaa0
      Rafael Mendonça França 提交于
      We are planning to remove mocha from our test suite because of
      performance problems. To make this possible we should stop require mocha
      on ActionSupport::TestCase.
      
      This should not affect applications since users still need to add mocha
      to Gemfile and this already load mocha.
      
      Added FIXME notes to place that still need mocha removal
      fd6aaaa0