Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Introduce an Attribute object to handle the type casting dance | Sean Griffin | 2014-06-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | There's a lot more that can be moved to these, but this felt like a good place to introduce the object. Plans are: - Remove all knowledge of type casting from the columns, beyond a reference to the cast_type - Move type_cast_for_database to these objects - Potentially make them mutable, introduce a state machine, and have dirty checking handled here as well - Move `attribute`, `decorate_attribute`, and anything else that modifies types to mess with this object, not the columns hash - Introduce a collection object to manage these, reduce allocations, and not require serializing the types | ||||
* | Use an actual identity type in AR::Result#identity_type | Sean Griffin | 2014-06-09 | 1 | -1/+1 |
| | | | | | We should be able to rely on this object implenting the full type interface. | ||||
* | Rename attribute related instance variables to better express intent | Sean Griffin | 2014-05-30 | 1 | -1/+1 |
| | | | | | | | | | `@attributes` was actually used for `_before_type_cast` and friends, while `@attributes_cache` is the type cast version (and caching is the wrong word there, but I'm working on removing the conditionals around that). I opted for `@raw_attributes`, because `_before_type_cast` is also semantically misleading. The values in said hash are in the state given by the form builder or database, so raw seemed to be a good word. | ||||
* | Return sized enumerator from Batches#find_each | Marc-Andre Lafortune | 2014-02-05 | 1 | -1/+1 |
| | |||||
* | Also dup `column_types` in AR::Result `initialize_copy` | Vipul A M | 2013-11-10 | 1 | -3/+4 |
| | |||||
* | typecast records returned from the db rather than to_sing everything | Aaron Patterson | 2013-10-08 | 1 | -0/+4 |
| | |||||
* | Perf: micro optimised Result column hash_row creation | Sam | 2013-08-29 | 1 | -1/+15 |
| | |||||
* | Added some usage about ActiveRecord::Result [ci skip] | kennyj | 2013-07-23 | 1 | -2/+26 |
| | |||||
* | make the identity type a singleton to save on object creation | Aaron Patterson | 2013-07-01 | 1 | -0/+6 |
| | |||||
* | Change Result#each to return an Enumerator when called without a block. | Ben Woosley | 2013-06-18 | 1 | -1/+5 |
| | | | | As with #10992, this lets us call #with_index, etc on the results. | ||||
* | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -1/+1 |
| | | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced. | ||||
* | Freeze columns only once per Result | Santiago Pastorino | 2012-09-20 | 1 | -6/+9 |
| | |||||
* | Freeze columns just before using them as hash keys | Santiago Pastorino | 2012-09-20 | 1 | -2/+5 |
| | |||||
* | Freeze columns before using them as hash keys | Jeremy Evans | 2012-09-13 | 1 | -1/+1 |
| | | | This reduces the number of allocated strings from columns * (rows + 1) to just columns. | ||||
* | Refactor AR::Result or inherits. Because we have redundant codes about | kennyj | 2012-08-22 | 1 | -2/+2 |
| | |||||
* | Doc for ActiveRecord::Result empty? method | Rob Zolkos | 2012-05-07 | 1 | -0/+1 |
| | |||||
* | moving column types to an ivar on the result | Aaron Patterson | 2012-02-07 | 1 | -8/+5 |
| | |||||
* | column types are passed from the result set to the instantiated AR object | Aaron Patterson | 2012-02-07 | 1 | -0/+4 |
| | |||||
* | QueryCache will just dup an AR::Result, AR::Result can deep copy | Aaron Patterson | 2012-01-31 | 1 | -0/+6 |
| | |||||
* | made the result set object act more like an array | Aaron Patterson | 2012-01-31 | 1 | -0/+19 |
| | |||||
* | Remove extra white spaces on ActiveRecord docs. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | |||||
* | updating the docco for ActiveRecord::Result | Aaron Patterson | 2011-04-11 | 1 | -2/+2 |
| | |||||
* | adjust query counts to be consistent across databases, make sure database ↵ | Aaron Patterson | 2011-02-04 | 1 | -0/+4 |
| | | | | log the same things | ||||
* | AR internals expect a normal hash, otherwise there are serialization ↵ | Aaron Patterson | 2011-01-05 | 1 | -1/+1 |
| | | | | incompatibilities | ||||
* | exec returns an AR::Result | Aaron Patterson | 2010-10-26 | 1 | -0/+30 |