lib/emojidex/data/extended.rb in emojidex-0.2.0 vs lib/emojidex/data/extended.rb in emojidex-0.2.1

- old
+ new

@@ -8,10 +8,12 @@ include Emojidex::Data::StaticCollection def initialize(opts = {}) super(opts) @endpoint = 'extended_emoji' - load_from_server unless check_and_load_static('extended') + @locale = opts[:locale] || Emojidex::Defaults.locale + load_from_server((opts[:detailed] || true), + @locale) unless check_and_load_static('extended') @emoji end end end end