Sha256: 93809796fd173a2ac1e75e02a6b975de6485796696f746ffe04614395cc1b857
Contents?: true
Size: 419 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bit_player-0.1.3 | app/models/bit_player/slideshow.rb |
bit_player-0.1.2 | app/models/bit_player/slideshow.rb |
bit_player-0.1.1 | app/models/bit_player/slideshow.rb |