| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
This reverts commits e969c928463e329fd6529ac59cad96385c538ffb and
bd2b3fbe54e750ba97469a7896e8d143d6dfd465.
|
|\
| |
| | |
Freeze ADAPTER_NAME in adapters
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is cased by 03118bc + 9b5d603. The first commit referenced the undefined
local variable `column` when it should be using `reflection.type` as the lookup
key. The second commit changed `build_arel` to not modify the `bind_values` in-
place so we need to combine the arel's `bind_values` with the relation's when
building the SQL.
Fixes #16591
Related #15821 / #15892 / 7aeca50
|
|\
| |
| | |
Move variable assignment within logging block.
|
| | |
|
|\ \
| | |
| | | |
Time#change throws exception with an out-of-range :usec
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
https://github.com/rails/rails/commit/98b46bf5e201307cae56ee14bf41363a539779c5
did not properly handled out-of-range `:usec`s.
Passing a `:usec` that's out of range now throws an `ArgumentError` as it
should.
Fixes #16759.
|
|\ \ \
| | | |
| | | | |
Fix ActiveJob rdoc `enqueue` -> `perform_later` [ci skip]
|
|/ / / |
|
|\ \ \
| |_|/
|/| | |
Cover all cases of `For not` --> `Do not`, related to #16804
|
|/ / |
|
|\ \
| | |
| | | |
Active Job partial refactor
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Skip StatementCache for eager loaded associations
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Eagerly loaded collection and singular associations are ignored by the StatementCache, which causes errors when the queries they generate reference columns that were not eagerly loaded.
This commit skips the creation of the StatementCache as a fix for these scenarios.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Document that method objects are not `duplicable?` [ci skip]
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |/ / /
|/| | | |
Change "For not..." to "Do not...".
|
|/ / / |
|
|/ /
| |
| |
| |
| |
| | |
This documentation should be in the guides.
Closes #16691
|
|\ \
| | |
| | |
| | |
| | | |
eileencodes/refactor-scope_chain-on-through-refelction-to-eliminate-branch-in-eval_scope
Always add lambda to scope chain to eliminate branch in eval_scope
|
| | |
| | |
| | |
| | |
| | |
| | | |
We convert all other scopes to lambda's so it makes sense that we should
always returns a lambda on a ThroughReflection as well. This eliminates
the need to check if the scope is a Relation.
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
eileencodes/refactor-add_constraints-followup-to-16762
Followup to PR #16762
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Remove chain from parameters, it's no longer needed since chain and i
are being passed via next_reflection
Change name of `reflection` to `owner_reflection` because of shadow
variable warning. The last reflection will always be the owner.
|
|\ \
| | |
| | | |
[ci skip] Fix typo in rails guide for routing
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added a few more methods on Module/Class to the dangerous class methods
blacklist. (Technically, allocate and new are already protected currently because
we happen to redefine them in the current implantation.)
Closes #16792
|
| | |
| | |
| | |
| | |
| | | |
This is a follow-up to ded17a4 to get the build passing on Travis.
As Travis has `ENV["RACK_ENV"]` set to `test` we need to reset that as well.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Warning looked like this:
```
/Users/senny/Projects/rails/activerecord/lib/active_record/associations/association_scope.rb:142: warning: shadowing outer local variable - reflection
```
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Renames _handle_render_options to _render_to_body_with_renderer, which is more
intention-revealing.
* The name of the dynamically generated method for a renderer with key :js was
"_render_option_js".
That name is too weak. :js is an option if you see the render argument as just
a generic options hash, but in the context of renderers that's the renderer
key, is what identifies the renderer.
Now "_render_with_renderer_js" is generated instead, which is crystal clear.
* The name of the dynamically generated method for the renderer was constructed
using string literals in a few places. That is now encapsulated in a method.
* Since we were on it, also removed a couple of redundant selfs.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add support for ARIA attributes in tags
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Methods are not duplicable.
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
[Active Job] Try to deserialize with GlobalID only strings and globalids
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Ship with rails-html-sanitizer instead.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Dont mess with default order engines load (4.1.6.rc1 regression)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When copying migrations some engines might depend on schema from other
engine so we can't blindly reverse all railties collection as that would
affect the order they were originally loaded. This patch helps to only
apply the order from engines specified in `railties_order`
|
| | | | | |
|
|\ \ \ \ \ |
|