Eugene Pimenov
|
8603813ac6
|
Fix memoize_all for methods with punctuation [#1175 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-10-05 17:25:58 -05:00 |
|
Jeremy Kemper
|
8b4461c1a4
|
Check whether memoized ivar is initialized
|
2008-09-08 19:43:52 -07:00 |
|
Joshua Peek
|
8cb14ee120
|
Ensure results returned by a memoized method are immutable
|
2008-08-13 21:30:46 -05:00 |
|
Jeremy Kemper
|
3fc9a67c04
|
memoize_ and unmemoize_all
|
2008-08-13 17:26:27 -07:00 |
|
Jeremy Kemper
|
6c70c02c83
|
Freeze memoized results when instance is frozen instead of immediately so you can memoize mutable objects
|
2008-08-07 23:31:43 -07:00 |
|
Jeremy Kemper
|
a8057669ff
|
Fixed memoize with punctuation and freezing memoized methods with arguments
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-08-07 14:55:14 -05:00 |
|
Joshua Peek
|
be0d235a3b
|
Optimize memoized method if there are no arguments
|
2008-08-06 20:21:15 -05:00 |
|
Jeremy Kemper
|
ae6105ef01
|
Don't rememoize if already frozen
|
2008-07-28 13:54:10 -07:00 |
|
Joshua Peek
|
8a87d8a6c2
|
Improved Memoizable test coverage and added support for multiple arguments
|
2008-07-22 10:26:44 -05:00 |
|
Joshua Peek
|
c609be4596
|
Ruby 1.9: Ensure Memoizable#freeze is only overriden once to avoid an endless loop
|
2008-07-18 23:30:36 -05:00 |
|
Joshua Peek
|
ef6f6625c9
|
Changed ActiveSupport::Memoizable API to extend since it mainly adds the memoize class method
|
2008-07-18 15:32:28 -05:00 |
|
Joshua Peek
|
e1f23da53c
|
Allow memoized methods to be reloaded and allow multiple symbols
|
2008-07-18 11:19:38 -05:00 |
|
Joshua Peek
|
7f0346237e
|
Append a "_" to memoized instance variables
|
2008-07-14 20:25:09 -05:00 |
|
Tarmo Tänav
|
911c2c3813
|
Some performance tweaks to ActiveSupport::Memoizable
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-14 20:23:23 -05:00 |
|
Joshua Peek
|
001c8beb4d
|
memorize typo
|
2008-07-14 20:02:59 -05:00 |
|
Joshua Peek
|
8a9934a9d9
|
Added Memoizable mixin for caching simple lazy loaded attributes
|
2008-07-14 19:50:32 -05:00 |
|