Ah, I see ``@period`` is used in the view. Perhaps changing the method name to ``set_period`` and then only accessing the instance variable? The memoization then becomes unnecessary.