| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Unscoping `default_scope` in associations has already supported (#17360
for preloading, c9cf8b8 for eager loading).
Fixes #20679.
Closes #16531.
|
|\
| |
| | |
Show query cache keys in `test_exceptional_middleware_clears_and_disables_cache_on_error`
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`test_exceptional_middleware_clears_and_disables_cache_on_error`
`test_exceptional_middleware_clears_and_disables_cache_on_error` in
postgresql adapter sometime fails recently. Show the query cache keys to
investigte the cause.
https://travis-ci.org/rails/rails/jobs/246467252#L490-L493
|
|\ \
| | |
| | | |
Add source code and changelog links to gemspecs
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove useless class checking for `ActiveSupport::Callbacks`s result_lambda
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
|\ \ \ \
| |_|_|/
|/| | | |
ActiveRecord: do not create "has many through" records that have been removed
|
| | |/
| |/|
| | |
| | |
| | | |
If a record was built on a HasManyThroughAssociation, then removed, and
then the record was saved, the removed record would be created anyways.
|
|\ \ \
| | | |
| | | | |
Fix missing formats in route-set URLs
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Before this change, handle_positional_args would end up mutating @segment_keys
if inner_options included path components. Subsequent calls would then
be missing the implicit path components.
eg:
user_path(1, :json) # => "/users/1.json" (correct)
user_path(1, format: :json) # => "/users/1.json" (correct, but @segment_keys was mutated)
user_path(1, :json) # => "/users/1" (oh no!)
|
|\ \ \ \
| | | | |
| | | | | |
Fix typo in callback deprecation message
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Add more explicit guidance on how to fix callback deprecations
|
| | | | |
| | | | |
| | | | |
| | | | | |
This deprecation warning message will be more useful if it indicates what the string was doing — being eval'd — and what the non-deprecated options for callback conditionals are.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Calling `follow_redirect!` does not reset the `html_document`:
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- When making a request to a controller that redirects, `follow_redirect!` would not reset the `html_document` ivar, it only resets the `html_document` ivar from the session (not the runner)
- If one was doing something like this;
```ruby
get '/redirect'
assert_select 'you are being redirected'
follow_redirect!
# html_document is memoized and doesn't get reset
```
- To fix the issue we can do the same for any other methods (`get`, `post`...) and define a method in the runner that delegates to the session but clears the html_document_first
- Fixes #29367
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
Extract `ordered_relation` in `FinderMethods`
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Refactor join dependency to move building constraints to `join_scope` in `Reflection`
|
| | | | | | | |
|
| | |_|_|_|/
| |/| | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Document ActiveRecord's PostgreSQL-specific support for JSONB datatype
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
RailsGuides
[ci skip]
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Allows for other common redis options to be in cable.yml, by default
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
- Adds RedisAdapterTest::AlternateConfiguration to account
for a relatively common alternative setup, as it’s used
as the first example in the
[Redis rubygem](https://github.com/redis/redis-rb#getting-started)
- Supplies original RedisAdapterTest with more complete
redis:// url format by adding a ‘userinfo’ (blank user),
so that it resembles the alternate configuration
- Supplies original EventedRedisAdapterTest with more complete
redis:// url as well
- Adds before_script to start redis-server with password as a daemon
and with explicit defaults copied from the default redis.conf
(Instead of using Travis' default init/upstart scripts for `redis` service)
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ActiveJob::Core#serialize stores provider_job_id (fixes #26581).
|
| | |/ / / / /
| |/| | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Ignore public/assets
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Skip instantiating `NullPreloader` if `assoc.klass` is nil
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Simply we can skip instantiating `NullPreloader` if `assoc.klass` is
nil.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix extracting `references` via `order_values` to respect quoting
|
| | |_|/ / /
| |/| | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Extract `build_scope` and `predicate_builder` in `Reflection`
|
| | | | | | | |
|
| | |_|/ / /
| |/| | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Ensure that using correct alias tracker
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Covering #27994 in tests.
Closes #27994.
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | | |
association, not the join root
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Remove unnecessary `tap` call on `ActionDispatch::MiddlewareStack.new`
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
[ci skip] Add missing space in security.md
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Add `railtie.rb` to the plugin generator
|
| | |/ / / / /
| |/| | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Rails 5.1.2.rc1 regression - Clear offset cache on CollectionProxy reset/reload
|
| | | | | | | | |
|