Class: FatFreeCRM::MailProcessor::Dropbox

Inherits:
Base
  • Object
show all
Defined in:
lib/fat_free_crm/mail_processor/dropbox.rb

Constant Summary collapse

KEYWORDS =
%w[account campaign contact lead opportunity].freeze

Instance Method Summary collapse

Methods inherited from Base

#run, #setup

Constructor Details

#initializeDropbox




16
17
18
19
20
21
22
23
24
# File 'lib/fat_free_crm/mail_processor/dropbox.rb', line 16

def initialize
  # Models are autoloaded, so the following @@assets class variable should only be set
  # when Dropbox is initialized. This needs to be done so that Rake tasks such as
  # 'assets:precompile' can run on Heroku without depending on a database.
  # See: http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
  @@assets = [Account, Contact, Lead].freeze
  @settings = Setting.email_dropbox.dup
  super
end