Sha256: c758b47da6dc6db830e1e1474d3bb131e107753643749e893cddcb96d5603d00

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

class Event < MLS::Model
  
  SOURCE_TYPES = %w(call email website)
  
  belongs_to :account
  belongs_to :task
  
  has_many :event_actions, :dependent => :destroy
  
  has_many :regards, :dependent => :destroy
  
  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.4.3 lib/mls/event.rb