Sha256: 0927e4e3c2d12ce3ee7cc7725a838c9efefc940cc6b15f1eb9fe36f8fe77a803
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
module BitPlayer class ParticipantStatus < ActiveRecord::Base belongs_to :participant def initialize_context(name) self.context = name self.module_position = 1 self.provider_position = 1 self.content_position = 1 save end def increment_content_position self.content_position += 1 save end def increment_provider_position self.provider_position += 1 self.content_position = 1 save end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bit_player-0.1.3 | app/models/bit_player/participant_status.rb |
bit_player-0.1.2 | app/models/bit_player/participant_status.rb |
bit_player-0.1.1 | app/models/bit_player/participant_status.rb |