Class: MailyHerald::Webui::OneTimeMailingsController

Inherits:
MailingsController show all
Defined in:
app/controllers/maily_herald/webui/one_time_mailings_controller.rb

Instance Method Summary collapse

Methods inherited from MailingsController

#preview, #update

Methods inherited from DispatchesController

#destroy, #index, #toggle, #update_form

Methods inherited from ResourcesController

#create, #destroy, #edit, #index, #new, #update

Methods inherited from ApplicationController

#expert_mode?, #work_mode

Methods included from MenuManager::ControllerExtensions

included

Methods included from Breadcrumbs::ControllerExtensions

included

Instance Method Details

#archivedObject



6
7
8
9
10
# File 'app/controllers/maily_herald/webui/one_time_mailings_controller.rb', line 6

def archived 
  add_breadcrumb view_context.tw("#{controller_name}.archived.label")
  
  super
end

#deliverObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/controllers/maily_herald/webui/one_time_mailings_controller.rb', line 16

def deliver
  find_item

  if params[:entity_id]
    @e = @item.list.context.scope.find(params[:entity_id])
    @item.deliver_to @e

    render_containers ["logs"]
    render_update
  else
    @item.run
    head :ok
  end
end

#showObject



12
13
14
# File 'app/controllers/maily_herald/webui/one_time_mailings_controller.rb', line 12

def show
  super
end