| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
It should be configured through the railtie
|
|
|
|
| |
This will decouple Action Cable from Rails.
|
|
|
|
| |
That would make possible to use it with action cable configuration.
|
|
|
|
| |
[ci skip] Link to actioncable/README.md for more details
|
|
|
|
|
|
|
|
|
|
| |
[ci skip]
Since Action Cable is getting integrated into rails/rails, the Travis
badge for rails/actioncable is not needed anymore.
Also following the standard of every other README to have `--` rather
than `-` to separating the name of the library from its description.
|
|\ |
|
| |\
| | |
| | | |
remove extra spaces from deprecation message
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
```
# before
DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
config.active_record.time_zone_aware_types << :time
```
```
# after
DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
config.active_record.time_zone_aware_types << :time
```
|
| |\ \
| | | |
| | | | |
Controller-wide fragment cache key prefixes
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | |
| | | |
Introduced in e56c63542780fe2fb804636a875f95cae08ab3f4, `CacheHelper#fragment_cache_key` is a duplicate of `ActionController::Caching::Fragments#fragment_cache_key`.
We now require the view to provide this method on its own (as with `view_cache_dependencies`); `ActionController::Caching::Fragments` exports its version as a `helper_method`.
|
| |\ \
| | | |
| | | | |
Add migration versioning via Migration subclasses
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Even though this means more things to change when we bump after a
release, it's more important that our examples are directly copyable.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
.. it also showed a deprecation warning, but we obviously needn't retain
that.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Apart from specific versioning support, our tests should focus on the
behaviour of whatever version they're accompanying, regardless of when
they were written.
Application code should *not* do this.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If we use a real version, at best that'll be an onerous update required
for each release; at worst, it will encourage users to write new
migrations against an older version than they're using.
The other option would be to leave these bare, without any version
specifier. But as that's just a variant spelling of "4.2", it would seem
to raise the same concerns as above.
|
| |/ / |
|
| | | |
|
| | | |
|
| |/
| |
| |
| | |
Travis still don't have a updated version
|
| | |
|
| | |
|
| |\
| | |
| | | |
Don't catch all NameError to reraise as ActionController::RoutingError
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 6d5b1fdf55611de2a1071c37544933bb588ae88e.
`eager_load` and `references` can include hashes, which won't match up
with `references`
A test case has been added to demonstrate the problem
|
| |\ \
| | | |
| | | |
| | | | |
Update seeds.rb.tt
|
| |/ /
| | |
| | |
| | | |
Rahm Emanuel doesn't deserve to be in Rails.
|
| |\ \
| | | |
| | | | |
`ActiveRecord::Base#becomes` should copy the errors
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This was changed in 421c81b, as `exists?` blows up if you are eager
loading a polymorphic association, as it'll try to construct a join to
that table. The previous change decided to execute a `count` instead,
which wouldn't join.
Of course, the only time we actually need to perform a join on the eager
loaded values (which would perform a left outer join) is if they're
being referenced in the where clause. This doesn't affect inner joins.
|
| |\ \ \
| | | | |
| | | | | |
Make Parameters#to_h and #to_unsafe_h return HWIA
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This makes these two methods to be more inline with the previous
behavior of Parameters as Parameters used to be inherited from HWIA.
Fixes #21391
|
| | |/ /
| |/| |
| | | |
| | | |
| | | | |
There was a test remaining for PG only that was checking for an exact
limit clause
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We currently generate an unbounded number of prepared statements when
`limit` or `offset` are called with a dynamic argument. This changes
`LIMIT` and `OFFSET` to use bind params, eliminating the problem.
`Type::Value#hash` needed to be implemented, as it turns out we busted
the query cache if the type object used wasn't exactly the same object.
This drops support for passing an `Arel::Nodes::SqlLiteral` to `limit`.
Doing this relied on AR internals, and was never officially supported
usage.
Fixes #22250.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some backends allow `LIMIT 1,2` as a shorthand for `LIMIT 1 OFFSET 2`.
Supporting this in Active Record massively complicates using bind
parameters for limit and offset, and it's trivially easy to build an
invalid SQL query by also calling `offset` on the same `Relation`.
This is a niche syntax that is only supported by a few adapters, and can
be trivially worked around by calling offset explicitly.
|
| |\ \ \
| | | | |
| | | | | |
Add specific bug reporting guidelines to contributing.md [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add boldface and bullets to make more readable.
Make sentences declarative.
Remove "you"s.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Otherwise assets will not work
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Bring latest changes over from actioncable/master
|
|/ / / / / |
|
| | | | | |
|