lib/enum_ish/dictionary.rb in enum_ish-1.3.1 vs lib/enum_ish/dictionary.rb in enum_ish-1.3.2

- old
+ new

@@ -31,10 +31,10 @@ translated end def load_dict(enum, options) key = i18n_key(enum, options) - dict = I18n.t("enum_ish.#{@klass.name.underscore}.#{key}", i18n_options(enum, options)) + dict = I18n.t("enum_ish.#{@klass.name.underscore}.#{key}", **i18n_options(enum, options)) dict.map { |k, v| [k.to_s.to_sym, v.to_s] }.to_h end def i18n_key(enum, options) [enum.name, options[:format]].compact.join('/')