Method: IshManager::EmailContextsController#iframe_src

Defined in:
app/controllers/ish_manager/email_contexts_controller.rb

#iframe_srcObject



46
47
48
49
50
51
52
53
54
55
56
# File 'app/controllers/ish_manager/email_contexts_controller.rb', line 46

def iframe_src
  @ctx = @email_context = Ish::EmailContext.find params[:id]
  authorize! :iframe_src, @ctx

  @tmpl        = @email_template = @ctx.email_template
  @tmpl_config = OpenStruct.new JSON.parse( @ctx.tmpl[:config_json] )
  @lead        = @ctx.lead
  @body        = @ctx.body

  render layout: false
end