Sha256: 468709a92b50e5d4ac3134b2df3f8d2ce441e9e0fcc8a30b61d2f4201b8b005b
Contents?: true
Size: 319 Bytes
Versions: 25
Compression:
Stored size: 319 Bytes
Contents
class Test include Mongoid::Document include SimpleFormAttachments::HasAttachments has_many_attachments :attachment_images, class_name: 'AttachmentImage', order: -> { attachment_images.id } validates :attachment_images, length: { maximum: 2 } # p attachment_images # sort_by { |u| ids.index(u.id) } end
Version data entries
25 entries across 25 versions & 1 rubygems