Sha256: 2bf74f9073bcbde0195bf96a6e50c0e78f2c667e295bdafa9cb35535cbbfc620
Contents?: true
Size: 367 Bytes
Versions: 32
Compression:
Stored size: 367 Bytes
Contents
module Auth::Concerns::ImageLoadConcern extend ActiveSupport::Concern included do attr_accessor :images after_initialize do |document| document.load_images end ##find an image/ images with this parent id. ##and add them to an images array. def load_images self.images = Auth::Image.where(:parent_id => self.id.to_s) || [] end end end
Version data entries
32 entries across 32 versions & 1 rubygems