Sha256: 5ac94caad71c0af5316b7f70952a3e94c8f5677b51eea3b0f997829c2a892ce3
Contents?: true
Size: 383 Bytes
Versions: 19
Compression:
Stored size: 383 Bytes
Contents
class Pulitzer::PostTypesController::Export def initialize(post_type) @post_type = post_type end def call json_hash = @post_type.as_json( except: [:id, :created_at, :updated_at], include: { post_type_versions: Pulitzer::PostTypeVersion.export_config } ) Pulitzer::PostTypeVersion.convert_hash_to_nested(json_hash).to_json end end
Version data entries
19 entries across 19 versions & 1 rubygems