rails/railties/test/application
Eugene Kenny 3b954786e7 Eagerly define attribute methods in production
The attribute methods for a model are currently defined lazily the first
time that model is instantiated, even when `config.eager_load` is true.
This means the first request to use each model incurs the cost, which
usually involves a database round trip to fetch the schema definition.

By defining the attribute methods for all models while the application
is booting, we move that work out of any individual request. When using
a forking web server, this also reduces the number of times the schema
definition is queried by doing it once in the parent process instead of
from each forked process during their first request.
2018-09-24 03:20:35 +01:00
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
middleware Purpose Metadata For Signed And Encrypted Cookies 2018-08-12 21:50:35 +05:30
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Make sure this test check the issue solved in #31135 2018-09-22 00:46:44 -04:00
asset_debugging_test.rb Pass the skip_pipeline option in image_submit_tag 2018-03-14 11:18:06 +00:00
assets_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
bin_setup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
configuration_test.rb Eagerly define attribute methods in production 2018-09-24 03:20:35 +01:00
console_test.rb Remove all references to slave in the codebase 2018-09-10 16:31:32 -04:00
content_security_policy_test.rb Remove trailing semi-colon from CSP 2018-02-19 12:20:43 +00:00
current_attributes_integration_test.rb Don't need the layout here 2017-09-04 05:44:45 +09:30
dbconsole_test.rb Use correct variable 2018-09-11 07:06:30 +09:00
generators_test.rb Do not show credentials in generators help 2017-11-09 20:59:16 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
loading_test.rb Add a test that exercice better the behavior we expect in the query cache 2018-09-12 20:57:52 -04:00
mailer_previews_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
middleware_test.rb Multipart file uploads are very rare in API only apps so don't include Rack::TemfileReaper in default middleware stack for API only apps 2018-02-17 15:52:41 -05:00
multiple_applications_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
paths_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
per_request_digest_cache_test.rb Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
rendering_test.rb Fix RenderingTest in railtie 2018-04-04 06:12:24 +09:00
routing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
server_test.rb Remove all references to slave in the codebase 2018-09-10 16:31:32 -04:00
test_runner_test.rb Ensure that running tests in parallel doesn't display schema load output 2018-08-08 16:20:38 +03:00
test_test.rb Add test parallelization to Rails 2018-02-15 19:21:24 -05:00
url_generation_test.rb Add credentials using a generic EncryptedConfiguration class (#30067) 2017-09-11 20:21:20 +02:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30