This data is accessed inconsistently; sometimes via the method, sometimes via the instance variable. As the variable appears to be for memoization, I'd suggest only accessing it via the method and changing the variable to ``@_period`` to make it clear that it's not meant to be used directly. ``:period`` can then be removed from the ``before_filter``.