Sha256: 84f2e692db316d54029015eda76e995ef29300622168aae7bf25420c6982d646

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

class Source < MLS::Model

  has_many :tasks, :as => :subject
  has_many :emails
  has_many :email_addresses
  has_many :webpages, :inverse_of => :source
  
  belongs_to :account
  belongs_to :organization
  belongs_to :upload, class_name: 'Flyer'
  
  def name
    domain
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mls-1.9.0 lib/mls/models/source.rb
mls-1.8.0 lib/mls/models/source.rb
mls-1.7.0 lib/mls/models/source.rb
mls-1.6.0 lib/mls/models/source.rb
mls-1.5.1 lib/mls/source.rb