Class: EmailCampaignsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- EmailCampaignsController
- Includes:
- EmailCampaignsAuthenticator
- Defined in:
- app/controllers/email_campaigns_controller.rb
Instance Method Summary collapse
-
#check_permissions ⇒ Object
define authenticate in your initializer (in main app).
- #create ⇒ Object
- #deliver ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #status ⇒ Object
- #update ⇒ Object
Instance Method Details
#check_permissions ⇒ Object
define authenticate in your initializer (in main app)
7 8 9 |
# File 'app/controllers/email_campaigns_controller.rb', line 7 def render :action => 'permission_denied' unless authenticate end |
#create ⇒ Object
21 22 23 |
# File 'app/controllers/email_campaigns_controller.rb', line 21 def create end |
#deliver ⇒ Object
41 42 43 |
# File 'app/controllers/email_campaigns_controller.rb', line 41 def deliver end |
#destroy ⇒ Object
37 38 39 |
# File 'app/controllers/email_campaigns_controller.rb', line 37 def destroy end |
#edit ⇒ Object
29 30 31 |
# File 'app/controllers/email_campaigns_controller.rb', line 29 def edit end |
#index ⇒ Object
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 |
#new ⇒ Object
17 18 19 |
# File 'app/controllers/email_campaigns_controller.rb', line 17 def new end |
#show ⇒ Object
25 26 27 |
# File 'app/controllers/email_campaigns_controller.rb', line 25 def show end |
#status ⇒ Object
45 46 47 |
# File 'app/controllers/email_campaigns_controller.rb', line 45 def status end |
#update ⇒ Object
33 34 35 |
# File 'app/controllers/email_campaigns_controller.rb', line 33 def update end |