wco_email 0.1.1.4 → 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: 61597801d89aaa1e36b55beaeea9acc706148ba6c1a83225770d979f02adc0b1
4
- data.tar.gz: ae4dbd6690ecf5c61efb0bc3e4937f7ba1a40134e6b0a0f95da8588478a2301c
3
+ metadata.gz: 68de2aa2f69836c97bd54dd9fd7b7f5f8968933a8baa343351fb37d141a4ef64
4
+ data.tar.gz: 21d17f9d825d3cf51d3da1081149a2e17eded52b992150dca08fc91a330c2dcb
5
5
  SHA512:
6
- metadata.gz: caea37456ead2787bb43eafb68d24c342ce0a7ef2f308a20b384d0fa80a7668f2a3dca58784cae0963b742b68bd56f091db91110823ddb83ac83985dd7060104
7
- data.tar.gz: 75993b2dae7cca5d52992e76e24fe26b73496af6efe998ce2c287d6aab8efa7490dc89766ceb109c500ea8ed995bd8797070b0b659855327789cdb0e54353ad1
6
+ metadata.gz: 128535731037f157e3f2d717b3f4b3b1d3778d946ac0e067afbc4d924ab188723ed2ce2cf377e5f459940ab3e99658384d014bb033e023a27f8053737ca4a9bd
7
+ data.tar.gz: 618e690c06f6fb09e3b025cee7bfe63714235f946cb10ebab48b28fec6489f4c6d5bc4e754e9db9578e9ad93cca95b1ad8c34b3d90cfb340cc01d30e84017257
@@ -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.4
4
+ version: 0.1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev