- 22 5月, 2014 12 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
The optimized and non-optimized path share more code now without significant performance degretation
-
由 Aaron Patterson 提交于
Example: x = [1,2,3,4] y = [3,2,1] def test x, y hash = {} x.zip(y) { |k,v| hash[k] = v } hash end def test2 x, y Hash[x.zip(y)] end def test3 x, y x.zip(y).each_with_object({}) { |(k,v),hash| hash[k] = v } end def stat num start = GC.stat(:total_allocated_object) num.times { yield } total_obj_count = GC.stat(:total_allocated_object) - start puts "#{total_obj_count / num} allocations per call" end stat(100) { test(x,y) } stat(100) { test2(x,y) } stat(100) { test3(x,y) } __END__ 2 allocations per call 7 allocations per call 8 allocations per call
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Guillermo Iguaran 提交于
Fix typo guides/source/active_support_instrumentation.md [ci-skip]
-
由 Marat Khusnetdinov 提交于
-
由 Rafael Mendonça França 提交于
fixes in active record query for reorder in rails guides
-
由 peeyush 提交于
-
由 Rafael Mendonça França 提交于
Rename `oid_type` to `cast_type` to make PG columns consistent with abstract columns
-
由 Sean Griffin 提交于
-
- 21 5月, 2014 28 次提交
-
-
由 Rafael Mendonça França 提交于
Add missing nodoc
-
由 Rafael Mendonça França 提交于
Fix serialized field returning serialized data after update_column Conflicts: activerecord/CHANGELOG.md
-
由 Rafael Mendonça França 提交于
This reverts commit 9a1abedc, reversing changes made to c72d6c91. Conflicts: activerecord/CHANGELOG.md activerecord/test/models/comment.rb This change break integration with activerecord-deprecated_finders so I'm reverting until we find a way to make it work with this gem.
-
由 Sean Griffin 提交于
-
由 Arthur Nogueira Neves 提交于
fix formatting and text for ActionController::Redirecting doc
-
由 Laurel Fan 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
- `extract_precision`, `extract_limit`, and `extract_default` probably need to follow. - would be good to remove the delegation `Column#extract_scale`. /cc @sgrif
-
由 Yves Senn 提交于
- Added assertions about the column. Specifically scale. - Move record insertion from setup into test method.
-
由 Yves Senn 提交于
Fix polymorphic eager load with foreign_key as String.
-
由 Lauro Caetano 提交于
The foreign_key could be `String` and just doing `owners_map[owner_key]` could return `nil`. To prevent this bug, we should `to_s` both keys if their types are different. Fixes #14734.
-
由 Rafael Mendonça França 提交于
Remove redundant code.
-
由 Guo Xiang Tan 提交于
-
由 Rafael Mendonça França 提交于
Hash#deep_*_keys(!) recurse into nested arrays. Conflicts: activesupport/CHANGELOG.md
-
由 Rafael Mendonça França 提交于
Fixes Issue #13466. Conflicts: activerecord/CHANGELOG.md
-
由 Rafael Mendonça França 提交于
Delegate `klass` to the injected type object
-
由 Rafael Mendonça França 提交于
Making belongs_to: touch behaviour be consistent with save updating updated_at
-
由 Rafael Mendonça França 提交于
This reverts commit e94e6c27. Conflicts: activerecord/CHANGELOG.md The original commit was reverted only to be safe since #14407 were reported. We don't have any proof we added a regression with the original commit so reverting it now will give us more problem. Closes #14407
-
由 Sean Griffin 提交于
-
由 Brock Trappitt 提交于
-
由 Rafael Mendonça França 提交于
Put attr_reader in with all of the other instance methods
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-