| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
See 34321e4a433bb7eef48fd743286601403f8f7d82 for background on
ImmutableString vs String.
Our String type cannot delegate typecasting to ImmutableString, because
the latter freezes its input: duplicating the value after that gives us
an unfrozen result, but still mutates the originally passed object.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
rails-ujs: missing default url for ajax requests.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Update routing doc on the `get` `to:` option [ci skip]
|
| | |_|/ / / /
| |/| | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Fix an AR test of relations_test when using Oracle
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We mention the "resources" section of the guide in the next paragraph,
and the link is listed there. IMHO we shouldn't list it twice.
[ci skip]
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
[ci skip]
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Users could have more than one `before_destroy` callback in their models.
[ci skip]
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
Documented issue related before_destroy with dependent: :destroy
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Updated text
|
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`fetch_values` was added to Hash in Ruby 2.3.0:
https://bugs.ruby-lang.org/issues/10017
This patch adds an implemention for instances of HWAI, in line
with the existing definitions of `fetch` and `values_at`.
|
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | |_|/ /
| |/| | | |
Expose `queries` for `AssociationQueryValue` and `PolymorphicArrayValue`
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
It should be handled by `PolymorphicArrayHandler` if polymorphic association.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
So we shouldn't claim they're there, even when asked explicitly.
|
|\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
y-yagi/remove_duplicated_delivery_method_definition
Remove duplicated `delivery_method` definition
|
| | |_|/
| |/| |
| | | |
| | | |
| | | | |
`ActionMailer::Base.delivery_method` is already defined in
https://github.com/rails/rails/blob/master/actionmailer/test/parameterized_test.rb#L13
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
use formatted number as schema version
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Extract `construct_relation_for_exists` in `FinderMethods`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
To ease to customize a relation for `exists?`.
|
| | | | | | |
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
It's been retired; all contributions now come in via PRs.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Calling fixture accessor method with no arguments returns all fixtures rather than empty array
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
fixtures, not an empty array.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
A long-standing bug has been fixed in Rails 5.1 by @pixeltrix
See https://github.com/rails/rails/blame/5-1-stable/actionpack/CHANGELOG.md#L52-L64
This PR updates the guides accordingly.
Before:
<img width="799" alt="before" src="https://cloud.githubusercontent.com/assets/10076/24809105/4ec7066c-1b73-11e7-98c6-c709c3465306.png">
After:
<img width="799" alt="after" src="https://cloud.githubusercontent.com/assets/10076/24809109/50b21188-1b73-11e7-8a1a-32c3d0ed512a.png">
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix edge guides for Active Record callbacks
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
kamipo/fix_warning_extra_states_are_no_longer_copied
Fix `warning: extra states are no longer copied`
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`messages` has `default_proc` so calling `reject` causes the warning.
https://github.com/ruby/ruby/blob/v2_4_1/hash.c#L1335-L1337
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix `warning: already initialized constant HashWithIndifferentAccessTest::HashWithIndifferentAccess`
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
HashWithIndifferentAccessTest::HashWithIndifferentAccess`
Caused since #28607.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Remove duplicated "test" prefix
|
|/ / / / / / / / |
|
| |_|_|_|_|_|/
|/| | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
I came up against this while dealing with a misconfigured server. The
browser was setting the Origin header to "https://example.com", but the
Rails app returned "http://example.com" from request.base_url (because
it was failing to detect that HTTPS was used).
This caused verify_authenticity_token to fail, but the message in the
log was "Can't verify CSRF token", which is confusing because the
failure had nothing to do with the CSRF token sent in the request. This
made it very hard to identify the issue, so hopefully this will make it
more obvious for the next person.
|
| |_|_|/ / /
|/| | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Ignore AR tests of index comment when using Oracle
|
| | |_|/ / /
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Use appropriate type to `header` option
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | | |
The `header` option checks only whether it is specified or not.
https://github.com/rails/rails/blob/e8c33349bfabca28996ac74d344d69c7aaffec50/railties/lib/rails/commands/dbconsole/dbconsole_command.rb#L52
|