Sha256: c7b88a924a8f1390d3a0efe9adb3dd8aba7eeaa2d9c1332594b3b85fea8f2c88
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module BitPlayer class ContentProvider < ActiveRecord::Base include BitPlayer::ContentProviders::ViewProvider 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bit_player-0.1.0 | app/models/bit_player/content_provider.rb |