Sha256: 359101e5bbfc6770027ba93c498e89572ac0ebe4dde96f7f1cc2008b4a6391a1
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
# frozen_string_literal: true # Log of participant viewings and listenings of media slides class MediaAccessEvent < ActiveRecord::Base belongs_to :participant, foreign_key: :participant_id belongs_to :slide, class_name: "BitCore::Slide", foreign_key: :bit_core_slide_id validates :media_type, inclusion: { in: ["audio", "video"] } validates :media_link, :participant, :slide, presence: :true delegate :title, to: :slide, prefix: true def task_release_day(group) module_id = slide.slideshow.content_provider.bit_core_content_module_id Task.find_by( bit_core_content_module_id: module_id, group_id: group.id ).release_day end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
think_feel_do_engine-3.21.0 | app/models/media_access_event.rb |
think_feel_do_engine-3.20.1 | app/models/media_access_event.rb |