| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Make `Module#redefine_method` to keep method visibility
|
|/
|
|
|
|
|
| |
Before this commit `Module#redefine_method` always changes
visibility of redefined method to `public`.
This commit changes behavior of Module#redefine_method` to
keep method visibility.
|
|\
| |
| | |
Do not omit parentheses [ci skip]
|
| | |
|
|\ \
| | |
| | | |
Tweaked wording used in some tests.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
fix rdoc markup [ci skip]
|
|/ / |
|
|\ \
| |/
|/| |
Remove JRUBY_OPTS from .travis.yml file
|
| |
| |
| |
| |
| |
| |
| | |
As we are not running tests for JRuby on travis this option is not
needed.
For more details check 0e8c04529159522aadbfe4fe71ea3d326df07d52
|
|\ \
| | |
| | | |
Remove skip on tests that have been fixed.
|
|/ / |
|
|\ \
| | |
| | |
| | | |
Guard clause for id_kind in generator
|
| | | |
|
| | |
| | |
| | |
| | | |
Also move the method to the right class
|
|/ / |
|
|\ \
| | |
| | | |
Fix punctuation [ci skip]
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Catch invalid UTF-8 querystring values and respond with BadRequest
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
tgxworld/fix_random_error_when_running_tests_with_jruby
FIX: Randomly failing test when running without GIL.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove no need `binds.empty?` checking
|
| |/ /
| | |
| | |
| | |
| | | |
`#exec_stmt` is private method and only called in `#exec_query`. it
means `binds` is provided always. No need `binds.empty?` checking.
|
|\ \ \
| |_|/
|/| |
| | |
| | | |
y-yagi/remove_unnecessary_files_indummy_application
remove unnecessary readme in dummy application
|
| |/
| |
| |
| | |
`README` it is changed to `README.rdoc` in 6b126e2, it has been changed to` README.md` further 89a12c9.
|
|\ \
| |/
|/| |
[ci skip] Add more code examples for `Module#anonymous?` docs
|
|/
|
|
|
| |
In later code examples, it is better to write how `Module#anonymous?`
works.
|
| |
|
|
|
|
|
|
|
|
| |
Reason: That one is an Oxford comma, as per our guidelines. See:
http://edgeguides.rubyonrails.org/api_documentation_guidelines.html#comma
This reverts commit f184cd34f9ef35ddf85a23c2fb02cc05d3fb26b3.
|
|\
| |
| | |
[ci skip] removed extra comma
|
|/ |
|
|
|
|
| |
[ci skip]
|
|\
| |
| | |
Use sufficient a regexp anchor to check `@response.content_type.to_s`
|
| |
| |
| |
| |
| |
| | |
This commit follows up of ea9bc06c9a47b839d5e2db94ba6bf7e29c8f0ae9.
To check `@response.content_type.to_s` is ended with `"xml"`,
to use `\z` is sufficient.
|
|\ \
| | |
| | | |
Refactored association preloader for performance
|
| | |
| | |
| | |
| | |
| | | |
* less arrays created
* less complexity with only one level of nesting in loop
|
|\ \ \
| |_|/
|/| | |
Change Integer#year to return a Fixnum instead of a Float to improve consistency
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Suppress warnings (warnings about AD::IntegrationTest HTTP request)
|
|/ /
| |
| |
| |
| | |
These warings have been appeared from
ea9bc06c9a47b839d5e2db94ba6bf7e29c8f0ae9.
|
|\ \
| | |
| | |
| | |
| | | |
rafaelsales/issues/21922-fix-ar-group-by-attribute-lookup
Fix generated projection fields in group by query
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* When tried to use `Company#accounts` test/models/company.rb I got:
```
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column:
accounts.company_id: SELECT COUNT(*) AS count_all, "companies"."firm_id"
AS companies_firm_id FROM "companies" INNER JOIN "accounts" ON
"accounts"."company_id" = "companies"."id" GROUP BY "companies"."firm_id"
```
* The refactor on Calculations class was just to simplify the code
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Closes #21922
Let `Book(id, author_id)`, `Photo(id, book_id, author_id)` and `Author(id)`
Running `Book.group(:author_id).joins(:photos).count` will produce:
* Rails 4.2 - conflicts `author_id` in both projection and group by:
```sql
SELECT COUNT(*) AS count_all, author_id AS author_id
FROM "books" INNER JOIN "photos" ON "photos"."book_id" = "books"."id"
GROUP BY author_id
```
* Master (9d02a25) - conflicts `author_id` only in projection:
```sql
SELECT COUNT(*) AS count_all, author_id AS author_id
FROM "books" INNER JOIN "photos" ON "photos"."book_id" = "books"."id"
GROUP BY "books"."author_id"
```
* With this fix:
```sql
SELECT COUNT(*) AS count_all, "books"."author_id" AS books_author_id
FROM "books" INNER JOIN "photos" ON "photos"."book_id" = "books"."id"
GROUP BY "books"."author_id"
```
|
|\ \ \
| |/ /
|/| | |
Remove `#tables` extra args again
|
|/ /
| |
| |
| |
| |
| | |
This issue was resolved by #21687 already. But re-add args by #18856.
`#tables` extra args was only using by `#table_exists?`. This is for
internal API. This commit will remove these extra args again.
|
|\ \
| | |
| | | |
remove unnecessary forwardable require
|
|/ /
| |
| | |
`Forwardable` has been used in the past
|
|\ \
| | |
| | | |
Extract native getter to attr_reader.
|
| | |
| | |
| | |
| | |
| | | |
The getter is doing nothing more than returning the ivar, so it can be
extracted to an attr_reader.
|