Sha256: 27dd9f2dc444af8e436c68cbbab3517cfd4fdea163210a6706f27676ac258bb1
Contents?: true
Size: 364 Bytes
Versions: 96
Compression:
Stored size: 364 Bytes
Contents
class Gallery < Noodall::Component many :promos key :title, String, :default => "Gallery" key :description, String key :asset_ids, Array, :typecast => 'ObjectId' def assets assets = Asset.all(:id => asset_ids) asset_ids.map do |id| assets.find{|a| a._id == id} end.compact end allowed_positions :small, :wide, :main end
Version data entries
96 entries across 96 versions & 1 rubygems