Sha256: 14ba8ecc189cd98cc5e9fc9f1c479c08452edeb3c43576cbad0a36e53c47ce0c
Contents?: true
Size: 296 Bytes
Versions: 8
Compression:
Stored size: 296 Bytes
Contents
class Gallery < ActiveRecord::Base has_many :gallery_images 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
8 entries across 8 versions & 1 rubygems