Sha256: cffde43365673a59a75d4fc2ce4c654f51aabd004f65087a374d8a8f308420fd
Contents?: true
Size: 431 Bytes
Versions: 12
Compression:
Stored size: 431 Bytes
Contents
module Locomotive::Wagon class PushSectionsCommand < PushBaseCommand def entities repositories.section.all end def decorate(entity) SectionDecorator.new(entity, content_assets_pusher) end def persist(decorated_entity) api_client.sections.update(decorated_entity.slug, decorated_entity.to_hash) end def label_for(decorated_entity) decorated_entity.name end end end
Version data entries
12 entries across 12 versions & 1 rubygems