Sha256: 7d78099e3c977081814be88425cea15df9e25ada57918902805d449cccb01a7a
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
module BitPlayer class Slideshow < ActiveRecord::Base has_many :slides, -> { order 'position' }, class_name: 'BitPlayer::Slide', foreign_key: :bit_player_slideshow_id, dependent: :destroy, inverse_of: :slideshow has_one :content_provider, as: :source_content, inverse_of: :source_content validates :title, presence: true accepts_nested_attributes_for :slides end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bit_player-0.1.0 | app/models/bit_player/slideshow.rb |
bit_player-0.0.5 | app/models/bit_player/slideshow.rb |