Sha256: d16b7c91f7028a4b3e4225043ca38b77c756a45feacaa5cdfa28c865df767b29

Contents?: true

Size: 525 Bytes

Versions: 16

Compression:

Stored size: 525 Bytes

Contents

class Participant < ActiveRecord::Base
  include SocialNetworking::Concerns::Participant

  attr_reader :navigation_status

  def active_membership_end_date
    Date.today.advance(weeks: 8)
  end

  def active_group
    self
  end

  def active_participants
    Participant.all
  end

  def display_name
    "display name"
  end

  def latest_action_at
    DateTime.new
  end

  def is_admin
    true
  end

  def current_group
    self
  end

  def arm
    Arm.new
  end

  def study_id
    "participant_study_id"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_networking-0.13.3 spec/dummy/app/models/participant.rb
social_networking-0.13.2 spec/dummy/app/models/participant.rb
social_networking-0.13.1 spec/dummy/app/models/participant.rb
social_networking-0.13.0 spec/dummy/app/models/participant.rb
social_networking-0.12.0 spec/dummy/app/models/participant.rb
social_networking-0.11.8 spec/dummy/app/models/participant.rb
social_networking-0.11.7 spec/dummy/app/models/participant.rb
social_networking-0.11.6 spec/dummy/app/models/participant.rb
social_networking-0.11.5 spec/dummy/app/models/participant.rb
social_networking-0.11.4 spec/dummy/app/models/participant.rb
social_networking-0.11.3 spec/dummy/app/models/participant.rb
social_networking-0.11.2 spec/dummy/app/models/participant.rb
social_networking-0.11.1 spec/dummy/app/models/participant.rb
social_networking-0.11.0 spec/dummy/app/models/participant.rb
social_networking-0.10.0 spec/dummy/app/models/participant.rb
social_networking-0.9.3 spec/dummy/app/models/participant.rb