Sha256: fa02f03148c434ef5c64a9c00877161661d39c38c6d65fe4b9a8023383b348fe
Contents?: true
Size: 421 Bytes
Versions: 44
Compression:
Stored size: 421 Bytes
Contents
module Locomotive::Wagon class PushTranslationsCommand < PushBaseCommand def entities repositories.translation.all end def decorate(entity) TranslationDecorator.new(entity) end def persist(decorated_entity) api_client.translations.update(decorated_entity.id, decorated_entity.to_hash) end def label_for(decorated_entity) decorated_entity.key end end end
Version data entries
44 entries across 44 versions & 1 rubygems