This project is archived and is in readonly mode.
ActiveRecord::Relation#to_a should be cachable
-
David Trasbo
- Assigned user set to Ryan Bigg
This has been solved - not by using memoization though:
def to_a return @records if loaded? @records = eager_loading? ? find_with_associations : @klass.find_by_sql(arel.to_sql) # ... @loaded = true @records end def loaded? @loaded endThis ticket can be closed.
-
Emilio Tagua
- State changed from new to resolved
- Assigned user changed from Ryan Bigg to Emilio Tagua
