1. 14 1月, 2015 1 次提交
  2. 05 1月, 2015 1 次提交
  3. 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
  4. 02 1月, 2015 1 次提交
  5. 23 12月, 2014 2 次提交
  6. 14 12月, 2014 1 次提交
  7. 28 10月, 2014 1 次提交
  8. 27 10月, 2014 1 次提交
  9. 24 9月, 2014 1 次提交
  10. 21 8月, 2014 1 次提交
  11. 09 8月, 2014 1 次提交
  12. 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
  13. 31 7月, 2014 3 次提交
  14. 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
  15. 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
  16. 16 7月, 2014 1 次提交
  17. 18 6月, 2014 1 次提交
    • R
      Add a generic --skip-gems options to generator · 10565895
      Rafael Mendonça França 提交于
      Also remove --skip-turbolinks.
      
      This option is useful if users want to remove some gems like jbuilder,
      turbolinks, coffee-rails, etc that don't have specific options on the
      generator.
      
          rails new my_app --skip-gems turbolinks coffee-rails
      10565895
  18. 14 6月, 2014 1 次提交
  19. 30 5月, 2014 1 次提交
  20. 18 5月, 2014 2 次提交
  21. 11 4月, 2014 1 次提交
  22. 09 4月, 2014 1 次提交
  23. 24 3月, 2014 2 次提交
  24. 26 2月, 2014 2 次提交
  25. 15 2月, 2014 1 次提交
    • A
      remove railties changes. fixes #14054 · 22a1a5ac
      Aaron Patterson 提交于
      Squashed commit of the following:
      
      commit 96991e8e919edfb20cc4120bca4e36ed51175d57
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:29:24 2014 -0800
      
          Revert "gems can be added or skipped from the template"
      
          This reverts commit 8beb42cf.
      
          Conflicts:
          	railties/lib/rails/generators/rails/app/app_generator.rb
          	railties/test/generators/app_generator_test.rb
      
      commit 35599c0e657245ef14ac0f28c9189ad16acf40e6
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:26:53 2014 -0800
      
          Revert "oops, template replay needs to happen after bundle. :orz:"
      
          This reverts commit 9104702b.
      
          Conflicts:
          	railties/lib/rails/generators/rails/app/app_generator.rb
      
      commit f519c3902c313db8e906a49251c91643b8e6499e
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:25:51 2014 -0800
      
          Revert "only ask for these ivars if the target responds to them"
      
          This reverts commit 656d4125.
      
      commit aa524a9428e3e4c45fe221f10a66a08efb827ab5
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:25:39 2014 -0800
      
          Revert "refactor generator tests to use block form of Tempfile"
      
          This reverts commit 65251820.
      
      commit 7d3740549fa4dfa62e3761f8d4bc6d6d441256e7
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:25:25 2014 -0800
      
          Revert "add a more restricted codepath for templates fixes #13390"
      
          This reverts commit 2875b4a6.
      
      commit 525df0af1001918986cdfce59539fd2d52c4f32c
      Author: Aaron Patterson <aaron.patterson@gmail.com>
      Date:   Fri Feb 14 11:25:11 2014 -0800
      
          Revert "add a send so `apply` can be called.  Fixes #13510"
      
          This reverts commit c5034d60.
      22a1a5ac
  26. 11 2月, 2014 1 次提交
  27. 30 1月, 2014 2 次提交
    • G
      Modify the session serializer implementation · fd487860
      Guillermo Iguaran 提交于
      Rename allowed options to :marshal and :json, for custom serializers
      only allow the use of custom classes.
      fd487860
    • L
      Allow session serializer key in config.session_store · b23ffd0d
      Lukasz Sarnacki 提交于
      MessageEncryptor has :serializer option, where any serializer object can
      be passed. This commit make it possible to set this serializer from configuration
      level.
      
      There are predefined serializers (:marshal_serializer, :json_serialzier)
      and custom serializer can be passed as String, Symbol (camelized and
      constantized in ActionDispatch::Session namepspace) or serializer object.
      
      Default :json_serializer was also added to generators to provide secure
      defalt.
      b23ffd0d
  28. 15 1月, 2014 1 次提交
  29. 13 1月, 2014 3 次提交
  30. 09 1月, 2014 2 次提交