lib/enum_ish/dictionary.rb in enum_ish-1.5.0 vs lib/enum_ish/dictionary.rb in enum_ish-1.5.1
- old
+ new
@@ -28,10 +28,10 @@
def cache
if (cache = Thread.current[CACHE_KEY]) != nil
cache[I18n.locale] ||= {}
cache[I18n.locale][@klass] ||= {}
cache[I18n.locale][@klass][@enum] ||= {}
- cache[I18n.locale][@klass][@enum][@optons] ||= yield
+ cache[I18n.locale][@klass][@enum][@options] ||= yield
else
yield
end
end