- 23 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
We're going to want all of the benefits of the type map object for registrations, including block registration and real aliasing. Moves type name registrations to the adapter, and aliases the OIDs to the named types
-
- 22 5月, 2014 24 次提交
-
-
由 Matthew Draper 提交于
Fixed a problem where `sum` used with a `group` was not returning a Hash.
-
由 Guillermo Iguaran 提交于
Most recent change should be moved to the top
-
由 Guillermo Iguaran 提交于
Documentation: Rename Posts to Articles
-
由 John Kelly Ferguson 提交于
-
由 Rafael Mendonça França 提交于
Move extract_scale to decimal type
-
由 Rafael Mendonça França 提交于
Move PG OID types to their own files
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
so tht I don't go totally insane with THsi crazy hash driven development. why is Everything a hash? Why do people think hashes in hashes with random keys is a Good API? You can't find things or deprecate them or control access whatsoever, you just have to hope that everyone is like "oh, you want to change that? that's cool! we all know it's hashes so go for it!" The End.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Sean Griffin 提交于
The only type that has a scale is decimal. There's a special case where decimal columns with 0 scale are type cast to integers if the scale is not specified. Appears to only affect schema dumping.
-
由 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 15 次提交
-
-
由 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 提交于
-
由 Sean Griffin 提交于
As we promote these classes to first class concepts, these classes are starting to gain enough behavior to warrant being moved into their own files. Many of them will become quite large as we move additional behavior to the type objects.
-
由 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
-