| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \
| |/ / / /
|/| | | | |
Remove not used argument `table_name` of `sanitize_sql_for_conditions`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This argument was needen when `sanitize_sql_for_conditions` internally
called `sanitize_sql_hash_for_conditions`.
But `sanitize_sql_hash_for_conditions` was deprecated
(https://github.com/rails/rails/commit/eb921000a11bc87a3b001164fc367b84aee584c5)
and deleted
(https://github.com/rails/rails/commit/3a59dd212315ebb9bae8338b98af259ac00bbef3)
(https://github.com/rails/rails/commit/4bd089f1d93fa168b0ae17dd8c92a5157a2537d7).
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Add tests for sanitize named bind arity
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The flash middleware shouldn't know how to look up the session object.
Just ask the request for that information.
|
| |/ /
|/| |
| | |
| | |
| | | |
We can know whether or not there is a content type object, and just exit
early. There is no need to `try` so hard.
|
|\ \ \
| | | |
| | | | |
Added assertion for error messages for nil and unknown delivery methods
|
| | | |
| | | |
| | | | |
As `deliver_now` `RuntimeError` for both nil & unknown delivery method so it’s good to have assertion for error messages
|
|\ \ \ \
| | | | |
| | | | | |
introduce `conn.data_source_exists?` and `conn.data_sources`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These new methods are used from the Active Record model layer to
determine which relations are viable to back a model. These new methods
allow us to change `conn.tables` in the future to only return tables and
no views. Same for `conn.table_exists?`.
The goal is to provide the following introspection methods on the
connection:
* `tables`
* `table_exists?`
* `views`
* `view_exists?`
* `data_sources` (views + tables)
* `data_source_exists?` (views + tables)
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update i18n.md [ci skip]
|
|/ / / / / |
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Removed mocha from Railites PluginGeneratorTest
|
| | | | | |
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Update routing.md
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We should not run MysqlAdapter tests when running with `sqlite3_mem`.
This also moves the test-case outside the MysqlAdapter namespace. This
will prevent the following error when running everything:
```
1) Error:
TestAdapterWithInvalidConnection#test_inspect_on_Model_class_does_not_raise:
TypeError: superclass mismatch for class MysqlAdapter
```
|
|\ \ \
| |_|/
|/| |
| | | |
Check mysql structure_load for errors
|
| | |
| | |
| | |
| | | |
structure_dump consistent
|
|\ \ \
| | | |
| | | | |
Correcting output of `file_field` with `multiple` attribute option [ci skip]
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Added Examples in docs for internal behavior of Array#to_formatted_s [ci skip]
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Correcting output of `number_to_percentage` example in `number_helper…
|
| | |/ / /
| |/| | |
| | | | | |
Here is correct output of `number_to_percentage(100, format: "%n %”)`
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fix a typo: Mime::Types should be Mime::Type [ci skip]
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Added assertion for error messages for redirection to nil and params
|
| | | | |
| | | | |
| | | | | |
As both `redirect_to_nil` and `redirect_to_params` are raising same `ActionController::ActionControllerError` so it’s good to assert error messages as well
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Synonyms are always a list of strings, and we have access to the
internal string representation, so we can avoid allocating new arrays.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Now that `all` has it's own object, we don't need the html_types Set.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This class gives us the `all?` predicate method that returns true
without hitting method missing
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since Mime::Type implements `method_missing`, and `blank?` triggers it's
positive branch:
https://github.com/rails/rails/blob/f9dda1567ea8d5b27bd9d66ac5a8b43dc67a6b7e/actionpack/lib/action_dispatch/http/mime_type.rb#L342
We should stop calling `blank?`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Changes `Mimes` to compose a set rather than inherit from array. With
this change we don't need to define as many methods, so ISEQ memory is
saved. Also it is clear which methods break the set cache.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We should be asking the mime type method for the mime objects rather
than via const lookup
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We don't want to manage a list of constants on `Mime::`. Managing
constants is strange because it will break method caches, not to mention
looking up by a constant could cause troubles. For example suppose
there is a top level constant `HTML`, but nobody registers the HTML mime
type and someone accesses `Mime::HTML`. Instead of getting an error
about how the mime type doesn't exist, instead you'll get the top level
constant.
So, instead of directly accessing the constants, change this:
Mime::HTML
To this:
Mime::Type[:HTML]
|
| | | | |
| | | | |
| | | | |
| | | | | |
Now we don't have to look it up with a `const_get`.
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Eliminate `test_tables_quoting` following seems to be left in #21687
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | | |
See 7dcfc25e7c52682a4343c2ba7188a69e7c06c936 for more details
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes #21488
[Sean Griffin & johanlunds]
|
| | | |
| | | |
| | | |
| | | | |
Hopefully this is the last one
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In Active Record, it appears these were either autoloaded, which
actually was likely due to test ordering since the method `Float#to_d`
wouldn't trigger it. This makes it explicit, and unlikely to fail in the
future.
|