Sha256: 79a43129e63b8bada5291cc257c69465eb35eb2a1cde2eacabedac4562149822
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
module BitPlayer class ContentProvider < ActiveRecord::Base belongs_to :content_module, class_name: 'BitPlayer::ContentModule', foreign_key: :bit_player_content_module_id, inverse_of: :content_providers belongs_to :source_content, polymorphic: true validates :content_module, :position, presence: true validates_numericality_of :position, greater_than_or_equal_to: 1 delegate :context, to: :content_module, prefix: false def exists?(position) false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bit_player-0.0.5 | app/models/bit_player/content_provider.rb |
bit_player-0.0.4 | app/models/bit_player/content_provider.rb |