Sha256: dc5da237cf710a824a711af523bd71b0132fcbc82adb755e47998da22fd73be8
Contents?: true
Size: 320 Bytes
Versions: 19
Compression:
Stored size: 320 Bytes
Contents
class Gallery < ActiveRecord::Base has_many :gallery_images, :dependent => :destroy belongs_to :galleriable, :polymorphic => true include Soapbox::Gallery if File.exists? "app/models/soapbox/gallery.rb" def self.has_images_for(name) self.find_by_name(name).gallery_images.length > 0 rescue false end end
Version data entries
19 entries across 19 versions & 1 rubygems