1. 19 9月, 2014 5 次提交
    • M
      Merge pull request #16964 from Agis-/issue-16956 · 8b39dfd6
      Matthew Draper 提交于
      Make delegation work with the reserved words passed to `:to`
      8b39dfd6
    • A
      Delegation works with reserved words passed to `:to` · 1a787ebb
      Agis- 提交于
      Fixes #16956.
      1a787ebb
    • R
      Merge pull request #16936 from untidy-hair/plugin_test_db_migrate_path · c2dfc316
      Rafael Mendonça França 提交于
      Specify dummy app's db migrate path in plugin's test_helper.rb
      
      Conflicts:
      	railties/CHANGELOG.md
      c2dfc316
    • X
      inject Rack::Lock if config.eager_load is false · 112077c2
      Xavier Noria 提交于
      If code is not eager loaded constants are loaded on demand. Constant
      autoloading is not thread-safe, so if eager loading is not enabled
      multi-threading should not be allowed.
      
      This showed up in certain Capybara scenarios: Most Capybara drivers
      other than Rack::Test need a web server. In particular, drivers for
      JavaScript support. Capybara launches WEBrick in its own thread for
      those but that per se is fine, because the spec thread and the server
      thread are coordinated.
      
      Problem comes if the page being served in the spec makes Ajax calls.
      Those may hit WEBrick in parallel, and since WEBrick is multi-threaded
      and allow_concurrency? returns true in the test environment before
      this patch, threads are spawned to serve those parallel requests. On
      the other hand, since eager_load is false by default in the test
      environment, constants are not preloaded.
      
      So the suite is autoloading constants in a multi-threaded set. That's
      a receipt for paracetamol. The symptom is random obscure errors whose
      messages point somehow to constant autoloading.
      
      As a consequence of this fix for allow_concurrency? WEBrick in
      Capybara scenarios no longer runs in multi-threaded mode.
      
      Fixes #15089.
      112077c2
    • R
      Merge pull request #16954 from geoffharcourt/inject-over-sum · 25f5af7f
      Rafael Mendonça França 提交于
      Use #inject over #sum to build PG create DB statement
      25f5af7f
  2. 18 9月, 2014 20 次提交
  3. 17 9月, 2014 9 次提交
  4. 16 9月, 2014 6 次提交