lib/e9_crm.rb in e9_crm-0.1.26 vs lib/e9_crm.rb in e9_crm-0.1.27
- old
+ new
@@ -4,26 +4,29 @@
module E9Crm
autoload :VERSION, 'e9_crm/version'
autoload :Controller, 'e9_crm/controller'
autoload :Model, 'e9_crm/model'
- autoload :Email, 'e9_crm/email'
autoload :TrackingController, 'e9_crm/tracking_controller'
autoload :SystemEmailsController, 'e9_crm/system_emails_controller'
module Rack
- autoload :ContactAutoCompleter, 'e9_crm/rack/contact_auto_completer'
- autoload :CompanyAutoCompleter, 'e9_crm/rack/company_auto_completer'
- autoload :EmailAvailabilityChecker, 'e9_crm/rack/email_availability_checker'
+ autoload :ContactAutoCompleter, 'e9_crm/rack/contact_auto_completer'
+ autoload :CompanyAutoCompleter, 'e9_crm/rack/company_auto_completer'
+ autoload :EmailCampaignAutoCompleter, 'e9_crm/rack/email_campaign_auto_completer'
+ autoload :EmailAvailabilityChecker, 'e9_crm/rack/email_availability_checker'
end
mattr_accessor :cookie_name
@@cookie_name = '_e9_tc'
mattr_accessor :query_param
@@query_param = 'code'
+ mattr_accessor :query_user_id
+ @@query_user_id = 'cuid'
+
mattr_accessor :log_level
@@log_level = :debug
mattr_accessor :logging
@@logging = false
@@ -52,10 +55,9 @@
user_model.send(:include, E9Crm::Model)
end
ApplicationController.send(:include, E9Crm::Controller)
- ::Email.send(:include, E9Crm::Email)
::Admin::SystemEmailsController.send(:include, E9Crm::SystemEmailsController)
E9Crm.tracking_controllers.each do |controller|
controller.send(:include, E9Crm::TrackingController)
end