Sha256: 524cf33c91ae08ab2bcbce6d7b3296aa0e8f85bfd33f06003398775c91ba025c
Contents?: true
Size: 564 Bytes
Versions: 7
Compression:
Stored size: 564 Bytes
Contents
module Fooltip class Container < ::ActiveRecord::Base mount_uploader :image, ImageUploader translates :title, :description, fallbacks_for_empty_translations: true attr_accessible :description, :title, :translations_attributes, :links_attributes, :image, :remove_image has_many :links, dependent: :destroy has_many :associations, dependent: :destroy has_many :popups, through: :links accepts_nested_attributes_for :translations, :links def display_name (title.blank? ? image.file.file : title) rescue to_s end end end
Version data entries
7 entries across 7 versions & 1 rubygems