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.19.9 app/models/activity_type.rb
think_feel_do_engine-3.19.8 app/models/activity_type.rb
think_feel_do_engine-3.19.7 app/models/activity_type.rb
think_feel_do_engine-3.19.6 app/models/activity_type.rb
think_feel_do_engine-3.19.5 app/models/activity_type.rb
think_feel_do_engine-3.19.4 app/models/activity_type.rb
think_feel_do_engine-3.19.3 app/models/activity_type.rb
think_feel_do_engine-3.19.2 app/models/activity_type.rb
think_feel_do_engine-3.19.1 app/models/activity_type.rb
think_feel_do_engine-3.19.0 app/models/activity_type.rb
think_feel_do_engine-3.18.0 app/models/activity_type.rb
think_feel_do_engine-3.17.2 app/models/activity_type.rb
think_feel_do_engine-3.17.1 app/models/activity_type.rb
think_feel_do_engine-3.17.0 app/models/activity_type.rb
think_feel_do_engine-3.16.3 app/models/activity_type.rb
think_feel_do_engine-3.16.2 app/models/activity_type.rb
think_feel_do_engine-3.16.1 app/models/activity_type.rb
think_feel_do_engine-3.15.7 app/models/activity_type.rb
think_feel_do_engine-3.16.0 app/models/activity_type.rb
think_feel_do_engine-3.15.6 app/models/activity_type.rb