ish_models 0.0.33.217 → 0.0.33.221

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: 7a9e33aa3ea807dfc5e0930053ae7f242fa31af1abdc8404ed0a1669851506e6
4
- data.tar.gz: 3aface0f98310b7ac3b036286f875b65811aa6e1a740f7f33291f69ad83c2a42
3
+ metadata.gz: 3574a0bbce23b4a7210d9bd8ecf1a6f735cb4f0241ececaa7c3b712187af08e1
4
+ data.tar.gz: b0289fbbfde3fae0e2781f7b08ba1210d3eca250d8b17e489bd90e07c0cfcc79
5
5
  SHA512:
6
- metadata.gz: 2b12706b7183a889e56a71b616898f937b1423e3cba8e8c03fb69dcc7270ec4b0925507b304662ab14899f847fd460998bfe3329ef1e224d2dc3a78e3b406495
7
- data.tar.gz: 375e5b35839e5602139e3e87bbedbf8b4c8154f536d53461a13266486ff8e70b64e7114f6c94bdf4a9d86db4a1e7925035ce539e47a28729aa27c16333518125
6
+ metadata.gz: fab8fb7c65be2da68952501149d7031dfb9e1097201be4976c4433a8d3759d2db64a7276368409cd6bc5c4f039f2a54566c0f243b3d060b8d7cab08ad9cede08
7
+ data.tar.gz: c4ce8b9892f36beaf33401d8b50548bba1061baa392c5f63aa1d739c4a99fc42aa901b081ac91568cd8837224b514ff2c882bfda7f85adadb1cea6602f43d095
data/lib/ish/event.rb ADDED
@@ -0,0 +1,20 @@
1
+
2
+ class Ish::Event
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ field :start_at, type: ActiveSupport::TimeWithZone
7
+ index({ start_at: 1 })
8
+
9
+ field :end_at, type: ActiveSupport::TimeWithZone
10
+
11
+ field :name
12
+ index({ name: 1 })
13
+
14
+ field :descr
15
+
16
+ field :is_public, type: :boolean, default: false
17
+ index({ is_public: 1 })
18
+
19
+ end
20
+
data/lib/ish_models.rb CHANGED
@@ -51,6 +51,7 @@ require 'ish/email_campaign'
51
51
  require 'ish/email_context'
52
52
  require 'ish/email_template'
53
53
  require 'ish/email_unsubscribe'
54
+ require 'ish/event'
54
55
  require 'ish/gallery_name'
55
56
  require 'ish/image_asset'
56
57
  require 'ish/invoice'
@@ -20,4 +20,4 @@ class Office::EmailMessageStub
20
20
  field :wp_term_ids, type: :array, default: []
21
21
 
22
22
  end
23
- Stub = EMS = Office::EmailMessageStub
23
+ EMS = Office::EmailMessageStub
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.217
4
+ version: 0.0.33.221
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -143,6 +143,7 @@ files:
143
143
  - lib/ish/email_context.rb
144
144
  - lib/ish/email_template.rb
145
145
  - lib/ish/email_unsubscribe.rb
146
+ - lib/ish/event.rb
146
147
  - lib/ish/gallery_name.rb
147
148
  - lib/ish/image_asset.rb
148
149
  - lib/ish/invoice.rb