Class: WcoEmail::MessagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/wco_email/messages_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
# File 'app/controllers/wco_email/messages_controller.rb', line 6

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

#show_iframeObject



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

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