- 30 12月, 2012 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 29 12月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 02 12月, 2012 3 次提交
-
-
由 Alvaro Pereyra 提交于
-
由 Vijay Dev 提交于
-
由 Florent Guilleux 提交于
-
- 22 11月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
To perform a sum calculation over the array of elements, use to_a.sum(&block). Please check the discussion in f9cb645d for more context.
-
由 Carlos Antonio da Silva 提交于
This reverts commit f9cb645d. Conflicts: activerecord/CHANGELOG.md Revert "Allow blocks for count with ActiveRecord::Relation. Document and test that sum allows blocks" This reverts commit 9cc2bf69. Conflicts: activerecord/lib/active_record/relation/calculations.rb
-
- 18 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 16 11月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 12 11月, 2012 1 次提交
-
-
由 Yves Senn 提交于
Closes #7551
-
- 10 11月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 18 10月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 16 10月, 2012 1 次提交
-
-
由 Tim Macfarlane 提交于
-
- 06 9月, 2012 1 次提交
-
-
由 Ian Lesperance 提交于
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 26 6月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Fix build issue with postgresql.
-
- 24 6月, 2012 1 次提交
-
-
由 Ernie Miller 提交于
Execute_grouped_calculation is one of those places where ActiveRecord forgets that it has ARel underpinnings, and assumes that the values provided to group_values are strings. This artificially hobbles otherwise functional code. This patch stops assuming that incoming values respond to to_sym, stops using string interpolation for table aliases on objects that support aliasing, and stops unnecessarily joining group_values on the relation. Additionally, it calls to_sql, if available, on objects sent to column_alias_for, in order to get a more reasonable alias string than a non-string's default to_str method.
-
- 22 6月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Ensure it works with mix of symbols and strings, and with a select clause possibly containing more than one column. Also remove support for pluck with an array of columns, in favor of passing the list of attributes: Model.pluck(:a, :b) See comments: https://github.com/rails/rails/pull/6500#issuecomment-6030292
-
由 jeroeningen 提交于
-
- 20 6月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
Also use if/else block to not use short circuit return
-
由 Andrey Deryabin 提交于
Fix #5990
-
- 31 5月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Thanks @splattael.
-
- 29 5月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Add Changelog entry. Closes #4003
-
由 chrisfinne 提交于
-
- 27 5月, 2012 1 次提交
-
-
由 Mark Rushakoff 提交于
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 17 5月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
an alias is provided. Without the alias, the column cannot be found and properly typecast.
-
由 Erich Menge 提交于
-
- 16 5月, 2012 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
- 01 5月, 2012 2 次提交
-
-
由 Ben Pickles 提交于
-
由 twinturbo 提交于
-