| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
samphippen/allow-early-setting-of-integration-session
Allow the `integration_sesion` to be set early on ActionDispatch::Integration::Runner.
|
| |
| |
| |
| | |
This allows us to not `||=` in `before_setup`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ActionDispatch::Integration::Runner.
In commit fa63448420d3385dbd043aca22dba973b45b8bb2, @tenderlove changed
the behaviour of the way `integration_session` is set up in this object.
It used to be the case that the first time it was accessed, it was
memoized with nil, however, this means that if it had already been set
it was not replaced. After that commit, it is now always set to `nil` in
the execution of `before_setup`.
In RSpec, users are able to invoke `host!` in `before(:all)` blocks,
which execute well before `before_setup` is ever invoked (which happens
in what is equivalent to a `before(:each)` block, for each test. `host!`
causes the integration session to be set up to correctly change the
host, but after fa63448420d3385dbd043aca22dba973b45b8bb2 the
`integration_session` gets overwritten, meaning that users lose their
`host!` configuration (see https://github.com/rspec/rspec-rails/issues/1662).
This commit changes the behaviour back to memoizing with `nil`, as
opposed to directly overwriting with `nil`. This causes the correct
behaviour to occur in RSpec, and unless I'm mistaken will also ensure
that users who want to modify their integration sessions early in rails
will also be able to do so.
|
|\ \
| | |
| | | |
Rename the title of comand_line.md in index
|
| | |
| | |
| | |
| | | |
Remove 'rake tasks' from index
|
|\ \ \
| |/ /
|/| | |
Remove over meta programming in AR::Relation
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Introduced low level methods #set_value and #get_value for setting query attributes:
relation.set_value(:where, {id: 1})
relation.get_value(:includes)
Used those internally when working with relation's attributes
at the abstract level
|
|\ \ \
| | | |
| | | | |
Remove unnecessary `format_string`
|
| | | |
| | | |
| | | |
| | | |
| | | | |
`format_string` is used for standardized column types/arguments spaces.
Now the standardization was removed at df84e9867219e9311aef6f4efd5dd9ec675bee5c.
|
|\ \ \ \
| | | | |
| | | | | |
Improve 5.0 Release notes
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
- Remove Duplicated explanation.
- Fix some typo.
- Attach PR, commit link that missed one.
|
|\ \ \ \
| |/ / /
|/| | | |
remove extra … in comments
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Remove unnecessary `any?` and `many?` methods for collection proxy
|
| | | |
| | | |
| | | |
| | | | |
Simply use its own methods because `CollectionProxy` inherits `Relation`.
|
|\ \ \ \
| | | | |
| | | | | |
Improve #tag_option performance
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Freeze string literals and use String instead of
Regex inside gsub call. This should improve performance from 20% up to
50% on most cases.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Add @queue variable to JobWrapper
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This will fix issues in [resque-scheduler](https://github.com/resque/resque-scheduler) `#job_to_hash` method,
so we can use `#enqueue_delayed_selection`, `#remove_delayed` method in resque-scheduler smoothly.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix CI failure caused by df84e9867219e9311aef6f4efd5dd9ec675bee5c
|
| | |/ / / /
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Doc on scoped has_many, dependent: :destroy
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is to close #26111
Developers need to be aware that `dependent: :destroy` on a scoped
`has_many` association would only destroy the associated objects in
that scope. Potentially leaving other associated objects outside that
scope untouched.
|
| | | | |
| | | | |
| | | | | |
Include the content of the flash in the auto-generated etag
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update docs with Action Cable Redis dependency
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Action Cable's test `test/subscription_adapter/redis_test.rb` fail if
Redis is not installed and running.
Following the guides `development_dependen there's no mention to this.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Now the schema dumper by default doesn't align the types and arguments
in the ruby format anymore.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Remove `:action` and `:controller` segments from routing guide
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #26247.
[ci skip]
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Specified directories for routes, views and jobs tests
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* Added location for route, view and job tests to section 2.1. (They are currently only defined in sections 8 Testing Views and 11 Testing Jobs.)
* Added location for route test in section 7 Testing Routes. (Currently only defined in section 8 Testing Views.)
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Return 307 status instead of 301 when rerouting POST requests to SSL
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
When `config.force_ssl` is set to `true`, any POST/PUT/DELETE requests coming in to non-secure url are being redirected with a 301 status.
However, when that happens, the request is converted to a GET request and ends up hitting a different action on the controller.
Since we can not do non-GET redirects, we can instead redirect with a 307 status code instead to indicate to the caller that a fresh request should be tried preserving the original request method.
`rack-ssl` gem which was used to achieve this before we had this middleware directly baked into Rails also used to do the same, ref: https://github.com/josh/rack-ssl/blob/master/lib/rack/ssl.rb#L54
This would be specially important for any apps switching from older version of Rails or apps which expose an API through Rails.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Change form of table name to plural in quering interface guides [ci skip]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix `ActionDispatch::Http::URL` docs [ci skip]
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Use ActionDispatch::Request instead of Request because ActionDispatch::Request no longer inherits from Rack::Request.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Upate guides to properly define return values of finder methods
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
instance of ActiveRecord::Relation
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Prevent invocation of channel action if rejected connection
|
| | |_|/ / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #23757.
Before this commit, even if `reject` was called in the `subscribe`
method for an Action Cable channel, all actions on that channel could
still be invoked. This calls a `return` if a rejected connection tries
to invoke any actions on the channel.
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
remove unnessary `session_store` setting
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Since e5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57, by default the session store
will be set to cookie store with application name as session key.
|
|\ \ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
it is used in context of a command like bin/rails or the rails directory [ci skip]
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
is that we are referring to. [ci skip]
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
- Followup of https://github.com/rails/rails/pull/26125.
|
|\ \ \ \ \ \ \ \
| |_|_|_|_|_|_|/
|/| | | | | | | |
Increase margin-bottom for doc's code syntax highlighter
|
| | |_|/ / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #25744 by slightly increasing the margin in code syntax
highlights. With a margin of 0, it was cutting off underscores in Linux
browesers, so I slightly increased it to 0.5px.
|