| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Building `where_clause` in `UniquenessValidator` is no longer needed
|
| |
| |
| |
| |
| |
| | |
Building `where_clause` manually was introduced at #26073 to include
both `comparison` and `binds` in `where_clause`. Since 213796f,
`comparison` includes `binds`, so it is enough to use `where` simply.
|
|\ \
| | |
| | | |
Use `predicate_builder.build_bind_attribute` wherever possible
|
| | |
| | |
| | |
| | | |
For less duplicated code.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Rails 5.1 introduce an `ActiveSupport::Duration::Scalar` class as
a wrapper around a numeric value as a way of ensuring a duration
was the outcome of an expression. However the implementation was
missing support for modulo operations. This commit adds support
for those operations and should result in a duration being
returned from expressions involving them.
Fixes #29603 and #29743.
|
|\ \ \
| | | |
| | | | |
[ci skip] update routing guide
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
commit 4a3d295f3011e771cddead80de7497ca15d15c13
Author: Yauheni Dakuka <yauheni.dakuka@gmail.com>
Date: Fri Jul 28 14:31:35 2017 +0300
Update routing.md
commit 620a4ce47288e3ef6504290c78f931214968e7e3
Author: Yauheni Dakuka <yauheni.dakuka@gmail.com>
Date: Fri Jul 28 14:19:29 2017 +0300
[ci skip] update routing guide
|
|\ \ \
| |/ /
|/| | |
[ci skip] update routing guide
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We were expecting those classes to be loaded when an association is
defined but they are not.
If you add a debugger on the first line of any of those classes and try
to define the corresponding association you will see that the classes
are not loaded.
Fixes #26273
|
|\ \
| | |
| | | |
Fix division where a duration is the denominator
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PR #29163 introduced a change in behavior when a duration was
the denominator in a calculation - this was incorrect as dividing
by a duration should always return a `Numeric`. The behavior of
previous versions of Rails has been restored.
Fixes #29592.
|
|\ \ \
| |/ /
|/| | |
Fix an AR test of schema dump when using Oracle
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix search input's type & placeholder conflict in Routing Error page
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
Anywhere that we're doing `self.class.unscoped.where(primary_key => id)`
is somewhere that someone may want to extend. Even if this method isn't
public API yet, this will make it easier for us to eventually expose an
API around this. Plus, duplicated code makes me sad.
|
| | | |
|
| |/
|/|
| |
| | |
Pointing at Rails master generally requires pointing at Arel master
|
|\ \
| | |
| | | |
Remove single element array preprocess
|
| | |
| | |
| | |
| | |
| | | |
Since 213796f, array predicate handler supports making binds, so the
preprocess is no longer needed.
|
|\ \ \
| | | |
| | | | |
Clarify add_column limit documentation
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The limit option is ignored by PostgreSQL and may be ignored by 3rd
party backends. Make this clear in the docs. Fixes #29922.
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Solves #29923
This regression was caused due to a wrong regex to filter out
paths, introduced in commit 796a1cf0e
The regex was /^\w+\// which did not accept paths with a leading
slash and hence all absolute paths were filtered out.
This change introduces a change in regex which allows for a leading
slash and acts on the matched term accordingly.
While cascading through the case block, the paths are checked for
line number specification, existence of a directory at that path
and if none of those match, then it is considered to be a path to the
file. The regex matchers specified are filtered out via the call
to `Array#compact` since they do not match any of these conditions.
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Note that the two relations must still have the same `includes` values
(which is the only time `references` actually does anything). It makes
sense for us to allow this, as `references` is called implicitly when
passing a hash to `where`.
Fixes #29411
|
|\ \ \
| | | |
| | | | |
Update Gemfile.lock to reflect arel 9.0.0.alpha
|
| | | |
| | | |
| | | |
| | | | |
Follow up to 089ca52.
|
|\ \ \ \
| |/ / /
|/| | | |
Suppress deprecated warning in Action Cable
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Without this change, bundler will resolve a gemfile which is pointing at
Rails master and not arel master. The error message that someone will
get from doing this will be incredibly unhelpful, as it'll be the result
of ActiveRecord being in a half-loaded that halted at `require
"arel/collectors/composite"`, which was subsequently rescued in
`"rails/all"`
|
|\ \ \ \
| | | | |
| | | | | |
Remove useless `JoinInformation`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since 213796f removed `binds`, `JoinInformation` only contain `joins`.
So it is enough to return `joins` simply.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove unused `queries_predicates`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since 213796f, `queries_predicates` is no longer used.
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | |
| | | | | |
| | | | | | |
y-yagi/extract_assert_output_and_available_pty_to_module
Extract `assert_output` and `available_pty?` into `ConsoleHelpers` module
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | | |
We define almost the same method with multiple tests. Therefore, it extract
into module.
|
| | | | |
| | | | |
| | | | |
| | | | | |
`bind_values` was removed from Arel
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The output of `.databases` in SQLite will truncate to a certain size.
This causes the test to fail when run locally from a mac, or anything
which has a tempdir with more than a few characters. This pragma has
the same output, but presented as a normal query, meaning no truncation
will occur.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
koic/fix_test_add_column_with_timestamp_type_oracle
Fix `test_add_column_with_timestamp_type` when using Oracle
|
| |/ / / / |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Stop creating ApplicationRecord on model generation
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When generating models, we created ApplicationRecord in the default
location if no file existed there. That was annoying for people who
moved it to somewhere else in the autoload path. At this point, the
vast majority of apps should have either run the upgrade script or
generated a model since upgrading. For those that haven't the error
message after generating a new model should be helpful:
NameError: uninitialized constant ApplicationRecord
To ease friction in that case, this also adds a generator for
ApplicationRecord.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
[ci skip] Add documentation for after_create_commit and after_update_commit callbacks
|
|/ / / /
| | | |
| | | |
| | | | |
callbacks
|
|\ \ \ \
| | | | |
| | | | | |
Make actionpack frozen string friendly
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
Fix `warning: ambiguous first argument`
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes the following warning:
```
railties/test/application/rake/dbs_test.rb:265: warning: ambiguous first argument; put parentheses or a space even after `/' operator
```
|
|\ \ \ \
| | | | |
| | | | | |
[API DOCUMENTATION] [MINOR] Correct description of ActionController::Parameters#delete
|