Support passing the schema name as a prefix to table name in ConnectionAdapters::SchemaStatements#indexes. Previously the prefix would be considered a full part of the index name, and only the schema in the current search path would be…
It was changed by mistake at 428d47adfed8d6aa7b21aec2bf5ad890961c9de3
If the value for a specified attribute is an array, validating inclusion
will check if the array is present in the given members. :each_object
allow the user to specify that each object in the array must be present
in the given memb…
This allows rails plugin authors to start their projects with a
README.md file instead of the default README.rdoc file.
# before
DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted t...
The force_ssl option redirects each request to https, but it would be great to be able to exclude a path from the redirection. My use-case would be when the app is behind a load balancer, I'd like to be able to do an http health check …
I exec this sample code but val_1 output is nil.
Beacuse first thread not finished at output.
Move output code at finished first thread.
Since https://github.com/rails/docrails is not publicly available,
are we better off without "404 Not Found" links in the documentation?
…d of ControllerTest
closes #22076
Since the absolute path is not required to re-run the test,
modified so that unnecessary information is not displayed.
# before
bin/rails test /path/to/blorgh/test/integration/navigation_test.rb:5
# after
bin/rails test...
Adding tests per @rafaelfranca in https://github.com/rails/rails/pull/22416
include ActionController::Renderers::Alluse_renderers was introduced in 2009 w…
In rails api, since default is so as not to use the protect_from_forgery,
request_forgery_protection initializer I think that's unnecessary
The rake db:test:* tasks were deprecated in #13528, but were
undeprecated and added back in via #17739.
This removes the following warning which has been out in the case of a PostgreSQL 9.3 below.
activerecord/test/cases/adapters/postgresql/geometric_test.rb:265: warning: instance variable @connection not initialized
bin/test can use the same API as the bin/rails test, since it is possible to run a flexible test than rake,
I think better to use a guide even bin/test.
[ci skip]
Q: What happens if you initialize an AR model by passing Parameters that
have not been whitelisted with permit?
A: An ActiveModel::ForbiddenAttributesError is raised.
I think this behavior is correct, and it's bet…
The file references Rack::Test here so it's better off requiring 'rack/test' in the first place.
Stems from comment by @dhh: https://github.com/rails/rails/pull/17227#commitcomment-9079727:
> I'd like for the option to be put in an initializer instead, though.
> It's not worthy of such high promise as the application.rb.
Styl…
this pull request is related with https://github.com/rails/rails/pull/18160
test-unit will be removed from standard library of Ruby 2.2. I understood to fix only security issue on 3-2-stable branch.
/cc @tmm1