| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
TestController#parameters returns AC::Parameters
|
| |
| |
| |
| |
| |
| |
| | |
Fixes #22827
ActionView::TestCase::TestController#parameters should return an
instance of ActionController::Parameters rather than a hash. This
enables helper methods to use the correct interface.
|
|\ \
| | |
| | | |
Fix documentation for configuring default_charset [ci skip]
|
| | |
| | |
| | |
| | | |
- Fixes #22836.
|
|\ \ \
| | | |
| | | | |
Fix typo
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
[ci skip] Put all removals in its section
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Remove not used test fixture
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
'actionmailer/test/mailers/async_mailer.rb' was deleted by
f9da785d0b1b22317cfca25c15fb555e9016accb .
This template is not used now.
|
|\ \ \ \
| | | | |
| | | | | |
Improve `select_one` in `Mysql2Adapter`
|
| | | | |
| | | | |
| | | | |
| | | | | |
These `select_*` methods improved already.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Avoid instanciate `ActiveRecord::Result` and calling
`ActiveRecord::Result#hash_rows` for the performance.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Correctly cache create_table_info
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Follow up to #21664.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Add AC::Parameters#include?
|
| | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | | |
Fixes #22818
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
jmbejar/mime-negotiation-format-from-extension-fix
Mime negotiation format from extension improvements
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
is not a valid type
Closes #22747
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix - `to_s(:db)` in numeric range
|
|/ / / / / |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Add test coverage for ActiveSupport::NumericWithFormat#to_formatted_s
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add a missing require to ActiveSupport::NumericWithFormat
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Fix #first(limit) to take advantage of #loaded? records if available
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I realized that `first(2)`, etc. was unnecessarily querying for the
records when they were already preloaded. This was because
`find_nth_with_limit` can not know which `@records` to return because
it conflates the `offset` and `index` into a single variable, while
the `@records` only needs the `index` itself to select the proper
record.
Because `find_nth` and `find_nth_with_limit` are public methods, I
instead introduced a private method `find_nth_with_limit_and_offset`
which is called internally and handles the `loaded?` checking.
Once the `offset` argument is removed from `find_nth`,
`find_nth_with_limit_and_offset` can be collapsed into
`find_nth_with_limit`, with `offset` always equal to `offset_index`.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
All uses of the `offset` are passing `offset_index`. Better to push
down the `offset` consideration into `find_nth`.
This also works toward enabling `find_nth_with_limit` to take
advantage of the `loaded?` state of the relation.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This resolves the following error:
```
Error:
TestAdapterWithInvalidConnection#test_inspect_on_Model_class_does_not_raise:
TypeError: superclass mismatch for class Mysql2Adapter
/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:35:in `<module:ConnectionAdapters>'
/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:34:in `<module:ActiveRecord>'
/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:6:in `<top (required)>'
/Users/senny/Projects/rails/activesupport/lib/active_support/dependencies.rb:302:in `require'
/Users/senny/Projects/rails/activesupport/lib/active_support/dependencies.rb:302:in `block in require'
/Users/senny/Projects/rails/activesupport/lib/active_support/dependencies.rb:268:in `load_dependency'
/Users/senny/Projects/rails/activesupport/lib/active_support/dependencies.rb:302:in `require'
/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
/Users/senny/Projects/rails/activerecord/lib/active_record/connection_handling.rb:50:in `establish_connection'
/Users/senny/Projects/rails/activerecord/test/cases/invalid_connection_test.rb:12:in `setup'
```
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Removed extra "the" in the documentation of `broadcast_message` [ci skip]
|
|/ / / / / / |
|
| | | | | |
| | | | | |
| | | | | | |
It's numeric and the framework is called Action Controller.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Document `Logger#broadcast_messages` option
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
CHANGELOG entry for petabyte and exabyte
|
|\ \ \ \ \ \ \
| |_|_|_|_|/ /
|/| | | | | | |
Add support for Petabyte and Exabyte in number to human size
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|_|_|_|/
|/| | | | | | |
fix link to pr [ci skip]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
[ActionCable] remove not needed protected call and newlines
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Add Ruby 2.3.0 to Travis matrix
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Changed default value of `:rc` option to `nil`
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- This fixes an error thrown by Thor because type of default value of
`:rc` option which is `:boolean` does not match with it's default type
which is `string`.
- Ref - https://github.com/erikhuda/thor/blob/master/lib/thor/parser/option.rb#L125
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix varbinary with default ''
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
A `(?:var)?binary` with default '' is a correct definition.
Remove `missing_default_forged_as_empty_string?` method for fixing this
issue because this method is a workaround for older mysql legacy adapter
(19c99ac, f7015336).
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
Improve documentation for `config.ssl_options`
|
| | | | | | | |
|