wco_email 0.1.1.3 → 0.1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 154abcf8ea105d1ed36ba09b362df1e18b305f9c711394f16c6a48749fda8796
4
- data.tar.gz: 60141e3205cfe7ffcf5489afa0f8c4f6b2d562520da56190b2bbfd16b11cfcc5
3
+ metadata.gz: 68de2aa2f69836c97bd54dd9fd7b7f5f8968933a8baa343351fb37d141a4ef64
4
+ data.tar.gz: 21d17f9d825d3cf51d3da1081149a2e17eded52b992150dca08fc91a330c2dcb
5
5
  SHA512:
6
- metadata.gz: ec0868b904e2aeade137d012d4221ae01f3e873e58b065879f66fbb0c5365af3324f16a3763f05e648d626f90e73132de380743eaa431c1ddbacc027973c81e1
7
- data.tar.gz: 9ce00adac76e64eae799a3d433b427f21c03fee0a6c7e861bbe87d46bcf98e7f11b204eae96071da7b8c5ca0b4dfe025f7b894124e1c1065e001a46ef2d6c921
6
+ metadata.gz: 128535731037f157e3f2d717b3f4b3b1d3778d946ac0e067afbc4d924ab188723ed2ce2cf377e5f459940ab3e99658384d014bb033e023a27f8053737ca4a9bd
7
+ data.tar.gz: 618e690c06f6fb09e3b025cee7bfe63714235f946cb10ebab48b28fec6489f4c6d5bc4e754e9db9578e9ad93cca95b1ad8c34b3d90cfb340cc01d30e84017257
@@ -5,6 +5,8 @@ class WcoEmail::ApiController < ActionController::Base
5
5
  skip_before_action :verify_authenticity_token
6
6
 
7
7
  def create_email_message
8
+ puts! params, 'params'
9
+
8
10
  stub = WcoEmail::MessageStub.create!({
9
11
  bucket: params[:bucket],
10
12
  object_key: params[:object_key],
@@ -129,7 +129,7 @@ class WcoEmail::ContextsController < WcoEmail::ApplicationController
129
129
  @ctx = WcoEmail::Context.find params[:id]
130
130
  authorize! :update, @ctx
131
131
 
132
- if @ctx.update_attributes params[:ctx].permit!
132
+ if @ctx.update_attributes params[:context].permit!
133
133
  flash[:notice] = 'Saved.'
134
134
  redirect_to action: 'edit', id: @ctx.id
135
135
  return
@@ -3,7 +3,7 @@
3
3
 
4
4
  .email-contexts--form
5
5
  -# - url = ctx.new_record? ? contexts_path : context_path(ctx)
6
- = form_for ctx, as: :ctx do |f|
6
+ = form_for ctx, as: :context do |f|
7
7
 
8
8
  .flex-row
9
9
  = f.label "Template"
@@ -34,7 +34,7 @@
34
34
 
35
35
  .flex-row
36
36
  = f.label :reply_to_message
37
- = f.select :reply_to_message_id, options_for_select([[ ctx.reply_to_message.subject, ctx.reply_to_message_id ]], selected: ctx.reply_to_message_id), {}, class: 'w-100'
37
+ = f.select :reply_to_message_id, options_for_select([[ ctx.reply_to_message, ctx.reply_to_message_id ]], selected: ctx.reply_to_message_id), {}, class: 'w-100'
38
38
 
39
39
  .tab-labels.flex-row
40
40
  %a.label-raw{ href: "javascript: void(0)", data: { ref: '.tab-raw' } } Raw
@@ -2,4 +2,4 @@
2
2
  .email-contexts-new.maxwidth
3
3
  .header
4
4
  %h2.title New email context
5
- = render '/wco_email/email_contexts/form', ctx: @ctx
5
+ = render '/wco_email/contexts/form', ctx: @ctx
@@ -13,7 +13,8 @@
13
13
  <b>Template:</b> #{link_to @ctx.email_template.slug, email_template_path(@ctx.email_template), target: :_blank }
14
14
  %li <b>From:</b> #{@ctx.from_email}
15
15
  %li <b>To Lead:</b> #{link_to @ctx.lead.email, wco.lead_path(@ctx.lead)}
16
- %li <b>reply_to_message:</b> #{ link_to @ctx.reply_to_message, message_path(@ctx.reply_to_message), target: :_blank }
16
+ - if @ctx.reply_to_message
17
+ %li <b>reply_to_message:</b> #{ link_to @ctx.reply_to_message, message_path(@ctx.reply_to_message), target: :_blank }
17
18
 
18
19
 
19
20
  .col-md-4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.3
4
+ version: 0.1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev