Sha256: f7ac8c0d116801a0587008f79a206dad55a76b300fe166237888b77764359ac9
Contents?: true
Size: 429 Bytes
Versions: 27
Compression:
Stored size: 429 Bytes
Contents
module Spina module Parts class ImageCollection < Base include AttrJson::NestedAttributes attr_json :images, Image.to_type, array: true attr_json_accepts_nested_attributes_for :images def to_s Spina::Parts::ImageCollection.model_name.human end def content (images || []) end def image_ids content.map(&:image_id) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems