salesflip-lead_notifications 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
@@ -2,7 +2,7 @@ class LeadNotifications::ControllerHooks < Salesflip::Callback::Base
2
2
  def app_after_filter( controller, context = {} )
3
3
  return unless controller.controller_name == 'leads' && controller.action_name == 'create'
4
4
  lead = controller.instance_variable_get("@lead")
5
- if lead && !controller.request.format.html?
5
+ if lead && lead.valid? && !controller.request.format.html?
6
6
  LeadNotifications::LeadNotificationMailer.lead_notification(lead).deliver
7
7
  end
8
8
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{salesflip-lead_notifications}
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Beedle"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesflip-lead_notifications
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Beedle