| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Refactor reflections
|
| |
| |
| |
| |
| |
| | |
Now the internal reflections will hold a reference to its public
representation, so when the outside world calls `Account.reflection` we
can build a list of public reflections.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix habtm reflection
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/counter_cache.rb
activerecord/lib/active_record/reflection.rb
activerecord/test/cases/reflection_test.rb
|
|\ \
| | |
| | | |
Refactor the handling of arrays in where predicates
|
| | |
| | |
| | |
| | |
| | |
| | | |
Simplifies the code slightly, isolates non-nil non-range values into a
single array, which will make it easier to do things like apply type
casting to them in the future.
|
|\ \ \
| | | |
| | | | |
Docs: Rename Posts to Articles in Guides' Getting Started App
|
| | | |
| | | |
| | | |
| | | | |
#15215 [ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
correct documentation for asset_path and image_path [ci skip]
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Skip individual tests upon Dalli::RingError
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Unlike the outer `rescue`, this one is much more precise about what we
want to handle: a connection failure (`Dalli::RingError`) is not
relevant to what we're testing here. But other Dalli errors may well be
indicating an actual problem.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
correct docs for audio_tag and video_tag [ci skip]
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
This is not a security issue since this page is not present in
production and user have to type something in the field but is better to
escape the input.
|
|\ \ \ \
| | | | |
| | | | | |
update the recommended ruby version.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
print generators on failed generate
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Let's say we just ran:
```
$ rails g migrate add_click_to_issue_assignment
```
We will get an error that looks like:
```
Could not find generator migrate.
```
This patch adds all existing migrations to the output to make it easier for a developer to find a valid migration.
```
Could not find generator "migrate". Please select a valid generator:
Rails:
assets
controller
generator
helper
integration_test
mailer
migration
model
resource
scaffold
scaffold_controller
task
```
It would be nice to do some spelling detection and suggest alternatives, but for now this should help.
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
Correct Documentation for asset_tag_helpers
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
Refactor the type casting of booleans in MySQL
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove checks against `column.type` in abstract adapter quoting
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The intention is to eventually remove `column` from the arguments list
both for `quote` and for `type_cast` entirely. This is the first step
to that end.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Add missing test case for quoting behavior
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It appears that the only time that `quote` is called with a column,
but without first calling `type_cast` is when where is called with an
array. My previous pull request broke this behavior, without failing
tests. This adds a test for the only case I can think of that exercises
the `if column.type == :integer` branch of `quote` effectively.
|
|\ \ \ \
| | | | |
| | | | | |
Add an interface for type objects to control Ruby => SQL
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Adds the ability to save custom types, which type cast to non-primitive
ruby objects.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Remove duplicated to_s method call.
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Fix test cases for inflector.rb
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`yield` was missing in #with_dup, due to which 57 assertions were not running
in real, and all tests were passing by default.
Error was introduced in commit - 31ceb5e.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
simple solution that brings rake stats task to all rails project
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
remove unused variable warning.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`warning: assigned but unused variable - album`
|
|/ / / / / |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Remove unnecessary flatten! method call.
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
[ci skip] Update GFM link in guides guidelines.
|
| |/ / /
| | | |
| | | |
| | | | |
Also remove a duplicated sentence.
|
|\ \ \ \
| | | | |
| | | | | |
Convert source to string if it is present.
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
The correct status to test should be :switching_protocols.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Remove unnecessary require of Minitest.
|
| | | |
| | | |
| | | |
| | | | |
Minitest has already been required when calling Minitest.autorun.
|