wco_models 3.1.0.242 → 3.1.0.244

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: 3e926ddd45b0a678cdaa19b113657f5d00ff64e1ab8d5b30e7993fe4a9af3972
4
- data.tar.gz: ca581d4f76f398a7913bb79cc67b77ea6e297018d07b45c61d369f76d392e457
3
+ metadata.gz: 8171e4a66ef058a4b0a2df6e74e78d660baaf4c6c658c5d0f37ef6d8751a6fca
4
+ data.tar.gz: 125d032a3d1c433b0b9bdb43eccf533aa484d39307b18ca499ddd9b125116e04
5
5
  SHA512:
6
- metadata.gz: 4ac1ea51775e3a132c1d2c1bcd410e5b01b06d72344a0f400faf7ca20ab1d8fa58c8beb44fa6f389585b24859798ce87b83e0092eceaf4e55ca9b68236d820b0
7
- data.tar.gz: a0b316cbe8c25e5b7119a1612e6063f6110a9265ca9101bd73b1beadb39421c238c5a170964247b8003b839cc6844e59cc8b4dc647755df02faaef0b9085fe3f
6
+ metadata.gz: e1bd76909d819c43ee1bcba649832152ce5cc1221b8b3155693d4ae9dc0a46a1c81217f16fd7112e71a570f51070e428d961be8eea9a1def4109d2fab6527979
7
+ data.tar.gz: 3af6207bae5bb95edb549027066e3f37f1493d59894b80edf1a425bd694e070ddc2f23832e8d9a6a49196d7c22780069e9ed428d089a7b6a43dfbdbce7503f86
@@ -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
 
@@ -52,7 +52,7 @@ class Wco::Gallery
52
52
  %w| name subhead descr |
53
53
  end
54
54
 
55
- has_and_belongs_to_many :tags
55
+ has_and_belongs_to_many :tags, class_name: 'Wco::Tag'
56
56
 
57
57
 
58
58
  has_many :oats, class_name: 'Wco::OfficeActionTemplate'
@@ -17,15 +17,15 @@ class Wco::Tag
17
17
  has_many :email_templates, class_name: 'WcoEmail::EmailTemplate', inverse_of: :tag
18
18
 
19
19
  has_and_belongs_to_many :conversations, class_name: 'WcoEmail::Conversation', index: true
20
- has_and_belongs_to_many :galleries
20
+ has_and_belongs_to_many :galleries, class_name: 'Wco::Gallery'
21
21
  has_and_belongs_to_many :headlines # , class_name: 'Headline'
22
- has_and_belongs_to_many :leads, index: true # , class_name: 'Lead'
23
- has_and_belongs_to_many :leadsets # , class_name: 'Leadset'
22
+ has_and_belongs_to_many :leads, class_name: 'Wco::Lead', index: true
23
+ has_and_belongs_to_many :leadsets, class_name: 'Wco::Leadset'
24
24
  has_and_belongs_to_many :logs
25
25
  has_and_belongs_to_many :message_stubs, class_name: 'WcoEmail::MessageStub'
26
- has_and_belongs_to_many :newsvideos
27
- has_and_belongs_to_many :reports
28
- has_and_belongs_to_many :videos
26
+ has_and_belongs_to_many :newsvideos, class_name: 'Wco::Newsvideo'
27
+ has_and_belongs_to_many :reports, class_name: 'Wco::Report'
28
+ has_and_belongs_to_many :videos, class_name: 'Wco::Video'
29
29
 
30
30
 
31
31
 
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.242
4
+ version: 3.1.0.244
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev