Sha256: f91ec89f31bb25ceb3fca197c1cc3289f139e37caf069523de701ce2d5d5ba27

Contents?: true

Size: 518 Bytes

Versions: 71

Compression:

Stored size: 518 Bytes

Contents

class WcoEmail::MessagesController < WcoEmail::ApplicationController

  before_action :set_lists, except: %i| show_iframe |

  def show
    @message = WcoEmail::Message.find params[:id]
    authorize! :show, @message
  end

  def show_iframe
    @message = WcoEmail::Message.find params[:id]
    authorize! :show, @message
    render layout: false
  end

  ##
  ## private
  ##
  private

  def set_lists
    @email_templates_list = WcoEmail::EmailTemplate.list
    @leads_list           = Wco::Lead.list
  end

end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
wco_email-0.1.1.75 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.72 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.71 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.70 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.69 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.68 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.67 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.66 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.65 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.64 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.63 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.62 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.61 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.60 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.59 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.58 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.56 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.55 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.54 app/controllers/wco_email/messages_controller.rb
wco_email-0.1.1.53 app/controllers/wco_email/messages_controller.rb