| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | | | |
| | | | |
| | | | |
| | | | | |
https://bugs.ruby-lang.org/issues/13239
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Don't highlight code in anchorlink [ci skip]
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Minor fix to #28662
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Downplay links in Guides headers
|
|/ / / /
| | | |
| | | |
| | | | |
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
Update backtrace cleaner to use `Regexp#match?`
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Clear active connections after initialization
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Any connections that were checked out during initialization should be
checked back in before the first request is processed, for two reasons:
- Returning the connection to the pool allows it to be health checked
before it's used again. If the connection dies before the first
request arrives, the health check will replace it with a new one.
- If the thread that initialized Rails is not the same thread that will
be performing work, checking in the connection will allow it to be
reused instead of being stuck to the initialization thread forever.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Raise NotImplementedError when using empty_insert_statement_value with Oracle
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Refer: https://github.com/rsim/oracle-enhanced/pull/1180
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit a680a5814184e2f37c4686aa53d0ad3c7fb6b1ee, reversing
changes made to 842f67dd242e738419f27e752ea7dcd0bbe87b6d.
Reason: I can't resist to the joke, so better to keep it there
https://github.com/rails/rails/pull/28598#issuecomment-290945339.
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
CI against Ruby 2.4.1
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
Related #28532, #27636
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit 82a7593e3ac427215a280dae5bd6cd42f9404650.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Add anchor links to all headers
|
| | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | | |
To allow easy linking at all levels and not just from index
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
No need to check nil
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
```ruby
nil.respond_to?(:stringify_keys) # => false
```
```ruby
include ActiveModel::AttributeAssignment
Object.new.assign_attributes(nil) # => ArgumentError: When assigning attributes, you must pass a hash as an argument.
```
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Limit stale checks to issues
|
| |/ / / / / |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This CHANGELOG.md is a continuation of the 5-1-stable one, there
shouldn't be any duplicate entries.
[ci skip]
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Add default_scope note to ActiveRecord guide
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Adds note to explain unexpected behavior described in issue #28561.
Developers may be surprised that the internal representation of similar
query conditions in Hash and Array formats in default_scope will yield
different results for model initialization.
Link: https://github.com/rails/rails/issues/28561
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix a failed AR test when running with OracleAdapter
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
CI against Ruby 2.3.4
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
https://www.ruby-lang.org/en/news/2017/03/30/ruby-2-3-4-released/
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
y-yagi/add_missing_backtick_to_deprecation_message
Add missing backtick to deprecation message
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix example usage of ActiveRecord::Base.establish_connection [ci skip]
|
| | | | | |
| | | | | |
| | | | | | |
`ActiveRecord::Base.establish_connection` accepts a single symbol argument to specify a named connection; a single string argument appears to be interpreted as a connection URI
|