Sha256: ced8cbe6eeb860ba53e8ff6e33ec9cdc0bf7cc07ea0d0e81c6c29b9a87ad2ebe

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

class Event < MLS::Model
  
  SOURCE_TYPES = %w(call email website)
  
  belongs_to :account
  belongs_to :task
  
  has_many :event_actions
  
  has_many :regards
  
  def actions
    event_actions.map(&:action)
  end
  
  def regarding
    regards.map(&:thing)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mls-1.5.0 lib/mls/event.rb