- 12 9月, 2018 1 次提交
-
-
由 Eileen Uchitelle 提交于
In a test app we observed that the query cache was not enabled on the first request. This was because the query cache hooks are installed on load and active record is loaded in the middle of the first request. If we remove the `on_load` from the railtie the query cache hooks will be installed before the first request, allowing the cache to be enabled on that first request. This is ok because query cache doesn't load anything else, only itself so we're not eager loading all of active record before the first request, just the query cache hooks. [Eileen M. Uchitelle & Matthew Draper]
-
- 25 2月, 2018 1 次提交
-
-
由 Eugene Kenny 提交于
`to_prepare` callbacks are run during initialization; using one here meant that `ActiveStorage::Blob` would be loaded when the app boots, which would in turn load `ActiveRecord::Base`. By using a lazy load hook to configure `ActiveStorage::Blob` instead, we can avoid loading `ActiveRecord::Base` unnecessarily.
-
- 26 1月, 2018 1 次提交
-
-
由 Daniel Colson 提交于
-
- 09 10月, 2017 1 次提交
-
-
由 bogdanvlviv 提交于
See #30520
-
- 15 8月, 2017 1 次提交
-
-
由 Pat Allan 提交于
-
- 04 8月, 2017 3 次提交
-
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
- 02 7月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
This reverts commit 3420a145, reversing changes made to afb66a5a.
-
- 01 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 23 12月, 2016 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 16 8月, 2016 1 次提交
-
-
由 Rafael Mendonça França 提交于
Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
-
- 07 8月, 2016 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
-
- 04 7月, 2016 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- The `boot_rails` method from abstract_unit.rb is empty after 2abcdfd9. - So let's remove it and its usage.
-
- 23 2月, 2016 1 次提交
-
-
- 08 1月, 2016 1 次提交
-
-
由 schneems 提交于
This PR introduces a key/value type store to Active Record that can be used for storing internal values. It is an alternative implementation to #21237 cc @sgrif @matthewd. It is possible to run your tests against your production database by accident right now. While infrequently, but as an anecdotal data point, Heroku receives a non-trivial number of requests for a database restore due to this happening. In these cases the loss can be large. To prevent against running tests against production we can store the "environment" version that was used when migrating the database in a new internal table. Before executing tests we can see if the database is a listed in `protected_environments` and abort. There is a manual escape valve to force this check from happening with environment variable `DISABLE_DATABASE_ENVIRONMENT_CHECK=1`.
-
- 15 12月, 2015 1 次提交
-
-
由 Matthew Draper 提交于
Apart from specific versioning support, our tests should focus on the behaviour of whatever version they're accompanying, regardless of when they were written. Application code should *not* do this.
-
- 03 12月, 2015 1 次提交
-
-
由 Matthew Erhard 提交于
LoadingTest#test_does_not_reload_constants_on_development_if_custom_file_watcher_always_returns_false in railties/test/application/loading_test.rb is failing with: `NoMethodError: undefined method 'execute' for #<#<Class:0x00000002465a30>:0x00000001f79698>` The test creates an anonymous class to be used as a custom file watcher using `config.file_watcher=`. Per the Rails guides for Configuring, the class set to `config.file_watcher` “Must conform to ActiveSupport::FileUpdateChecker API”. Per the docs for ActiveSupport::FileUpdateChecker, the API depends on four methods: #initialize, #updated?, #execute, and #execute_if_updated. The custom file watcher in the failing test only implements the first two methods. This pull request adds #execute and #execute_if_updated to the custom file_watcher, conforming it to the ActiveSupport::FileUpdateChecker API, and passing the test.
-
- 05 5月, 2015 1 次提交
-
-
由 Andrew White 提交于
-
- 27 12月, 2014 1 次提交
-
-
由 Alex Robbin 提交于
-
- 02 7月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 11 6月, 2013 1 次提交
-
-
由 wangjohn 提交于
Rails.application when drawing routes and creating other configurations on the application.
-
- 07 6月, 2013 1 次提交
-
-
由 Xavier Noria 提交于
Conflicts: railties/test/application/loading_test.rb
-
- 04 6月, 2013 1 次提交
-
-
由 wangjohn 提交于
more agnostic Rails.application syntax. This means tests will be more portable, and won't rely on the existence of a particular subclass.
-
- 15 10月, 2012 1 次提交
-
-
由 Robin Dupret 提交于
-
- 17 9月, 2012 1 次提交
-
-
由 Guillermo Iguaran 提交于
-
- 25 4月, 2012 1 次提交
-
-
由 Jose and Yehuda 提交于
In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
-
- 28 3月, 2012 1 次提交
-
-
由 Franck Verrot 提交于
Changes: * `Rails.initialized=` has been removed * `Rails.initialized?` and `Rails.application.initialized?` are now * delegating to `MyApp::Application.initialized?`
-
- 15 3月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 05 3月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 15 1月, 2012 1 次提交
-
-
由 Piotr Sarnacki 提交于
SchemaMigration model is loaded on rails initialization, which means that it will not be cleaned on each request.
-
- 06 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 16 12月, 2011 1 次提交
-
-
由 José Valim 提交于
Clean up the cache before the request in case we are running in the reload_classes_only_on_change schema.
-
- 13 12月, 2011 3 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
Add config.file_watcher so developers can provide their own watchers (for instance, hooking on fsevents).
-
由 José Valim 提交于
This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
-
- 06 6月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Arun Agrawal 提交于
-
- 05 9月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
-