azimuth_spree_easy_contact 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,9 @@ class ContactsController < Spree::BaseController
20
20
  ContactMailer.message_received_email(@contact).deliver
21
21
  format.html { redirect_to(root_path, :notice => t("message_sent")) }
22
22
  else
23
+ if @conversation.contacts.count == 0
24
+ @conversation.destroy
25
+ end
23
26
  format.html { render :action => "new" }
24
27
  end
25
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azimuth_spree_easy_contact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-02-08 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: spree_core
18
- requirement: &2157609540 !ruby/object:Gem::Requirement
18
+ requirement: &2166415880 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.40.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2157609540
26
+ version_requirements: *2166415880
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: recaptcha
29
- requirement: &2157607680 !ruby/object:Gem::Requirement
29
+ requirement: &2166403940 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2157607680
37
+ version_requirements: *2166403940
38
38
  description:
39
39
  email: day@azimuthonline.com
40
40
  executables: []