wco_models 3.1.0.241 → 3.1.0.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 992dd5056deab4631dd31cda86e3acd76e266b6d4b4e35e1649151f7fc612e81
4
- data.tar.gz: b966eb486db7625e6438587694021ad0f8bf72e959fb77e4daaca336ad9df877
3
+ metadata.gz: a22bfffbb552bdd2a76d735b477bbccc5d8012b63ce53b6af99ec6a81de2c6eb
4
+ data.tar.gz: 91717c9205a648ee9f89b26f731b6467aea0d40df14a0050454c27522769b90d
5
5
  SHA512:
6
- metadata.gz: 2b84c1ae7b5dd1d0ef0e15557fb50a46b08b3d6bfbb17991e35fe1e429f7069c8b9b6b236df86ca56897d2d4ad7b7a1a3cc72246f3f008548b5d7e45300e6d43
7
- data.tar.gz: ed56f590661d865a96840b1736f9b3e5ae451ec6f3b7a501a1a804da148ff12fdaecd54301d609b2b776832b975ad36fbf65bfbf612b7bec8a4395e60a72a4c2
6
+ metadata.gz: e24d6328a9d238108bd77d5a67210469fa2971d6dc9d9695db0276f85bea811523afd2ab4533a6661faee8ed289395d9438e3ffcaf2be3ea35953d69972d9373
7
+ data.tar.gz: 6c72568be7196c1ac0073605132cf368803a57b9d3c9969538ea4d3382be18eeccc24026b2e4dbef26094b96d46ed1dfa5045d8fb8c15f4d8e82616494f69d9a
@@ -10,7 +10,7 @@ class Ability
10
10
 
11
11
  if user
12
12
 
13
- if [ 'piousbox@gmail.com', 'victor@piousbox.com', 'victor@wasya.co' ].include? user.email
13
+ if [ ENV['EMAIL'] ].include? user.email
14
14
  can :manage, :all
15
15
  end
16
16
 
@@ -12,7 +12,7 @@ class Wco::Leadset
12
12
  index({ company_url: 1 }, { unique: true, name: 'company_url' })
13
13
  before_validation :normalize_company_url, on: :create
14
14
  def normalize_company_url
15
- company_url.downcase!
15
+ company_url.downcase
16
16
  end
17
17
  def domain; company_url; end # for anti-spam
18
18
  def self.from_email email
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.241
4
+ version: 3.1.0.243
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev