Class: EmailCampaignsController

Inherits:
ApplicationController
  • Object
show all
Includes:
EmailCampaignsAuthenticator
Defined in:
app/controllers/email_campaigns_controller.rb

Instance Method Summary collapse

Instance Method Details

#check_permissionsObject

define authenticate in your initializer (in main app)



7
8
9
# File 'app/controllers/email_campaigns_controller.rb', line 7

def check_permissions
  render :action => 'permission_denied' unless authenticate
end

#createObject



21
22
23
# File 'app/controllers/email_campaigns_controller.rb', line 21

def create
  
end

#deliverObject



41
42
43
# File 'app/controllers/email_campaigns_controller.rb', line 41

def deliver
  
end

#destroyObject



37
38
39
# File 'app/controllers/email_campaigns_controller.rb', line 37

def destroy
  
end

#editObject



29
30
31
# File 'app/controllers/email_campaigns_controller.rb', line 29

def edit
  
end

#indexObject



11
12
13
14
15
# File 'app/controllers/email_campaigns_controller.rb', line 11

def index
  # @drafts = EmailCampaign.where(:queued => false)
  # @queued = EmailCampaign.where(:queued => true, :delivered => false)
  # @sent = EmailCampaign.where(:delivered => true).order('delivery_finished_at desc')
end

#newObject



17
18
19
# File 'app/controllers/email_campaigns_controller.rb', line 17

def new
  
end

#showObject



25
26
27
# File 'app/controllers/email_campaigns_controller.rb', line 25

def show
  
end

#statusObject



45
46
47
# File 'app/controllers/email_campaigns_controller.rb', line 45

def status
  
end

#updateObject



33
34
35
# File 'app/controllers/email_campaigns_controller.rb', line 33

def update
  
end