Sha256: cd874a30bcde862b2f29957b0662b9104634078068e32e42792663cf09afe0ac

Contents?: true

Size: 286 Bytes

Versions: 55

Compression:

Stored size: 286 Bytes

Contents

# The name given to an Activity. Can be private to a Participant or public.
class ActivityType < ActiveRecord::Base
  belongs_to :participant
  has_many :activities, dependent: :restrict_with_exception

  validates :title, presence: true
  # do not validate presence of participant
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
think_feel_do_engine-3.15.5 app/models/activity_type.rb
think_feel_do_engine-3.15.4 app/models/activity_type.rb
think_feel_do_engine-3.15.3 app/models/activity_type.rb
think_feel_do_engine-3.15.2 app/models/activity_type.rb
think_feel_do_engine-3.15.1 app/models/activity_type.rb
think_feel_do_engine-3.15.0 app/models/activity_type.rb
think_feel_do_engine-3.14.9 app/models/activity_type.rb
think_feel_do_engine-3.14.8 app/models/activity_type.rb
think_feel_do_engine-3.14.7 app/models/activity_type.rb
think_feel_do_engine-3.14.6 app/models/activity_type.rb
think_feel_do_engine-3.14.5 app/models/activity_type.rb
think_feel_do_engine-3.14.4 app/models/activity_type.rb
think_feel_do_engine-3.14.3 app/models/activity_type.rb
think_feel_do_engine-3.14.2 app/models/activity_type.rb
think_feel_do_engine-3.14.1 app/models/activity_type.rb
think_feel_do_engine-3.14.0 app/models/activity_type.rb
think_feel_do_engine-3.13.1 app/models/activity_type.rb
think_feel_do_engine-3.13.0 app/models/activity_type.rb
think_feel_do_engine-3.12.9 app/models/activity_type.rb
think_feel_do_engine-3.12.8 app/models/activity_type.rb