think_feel_do_engine 3.22.2 → 3.22.4

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
  SHA1:
3
- metadata.gz: 3aa2a878a30d337e8fd22ee814574dfc725b5006
4
- data.tar.gz: 6f5f24ee50fb06d34a17f91c9ce2153c584e2b0c
3
+ metadata.gz: b8be8b651639081ece8f6ad7a66d906c51eedd6a
4
+ data.tar.gz: 6a4019df2270f606df941612a59f16a63f0e206b
5
5
  SHA512:
6
- metadata.gz: f39199f43e878cf2617871e3e42dd7cde00d4f558f67a1647006361bcd1f0782e13a79ae302205c432be5207fb225399cad4f1697a0473e2a15e5a17b54b19cf
7
- data.tar.gz: 88e2318d37a91db31f485c1c7a28c35a66350fad3380a91c6b8c61ce071b65d570af540e4d1b083bb1be79be4b32cae1ebe84647e16fe4bddb79cff8b2724f15
6
+ metadata.gz: ecd6d1e8d85b6e2b33feb28b8dab919c76f4ec9b6713c5582fd14cda32cd22f7652023f6d228fc3540d72142528c7053c1a2218d140f2175ebcb5e65e9e4864d
7
+ data.tar.gz: bb5f7770c6f11bd220594bdb29dded989fb77ef79a0330a64a1a08af8906bfd375f6c6ae3ea4f63c83b74483d84b964e057a7efd9bce1db00d8e95293d46ac3b
@@ -136,6 +136,12 @@ class Activity < ActiveRecord::Base
136
136
  )
137
137
  }
138
138
 
139
+ scope :starts_in_the_future, lambda {
140
+ where(
141
+ arel_table[:start_time].gt(Time.current)
142
+ )
143
+ }
144
+
139
145
  scope :planned, lambda {
140
146
  where(
141
147
  is_reviewed: false,
@@ -12,7 +12,7 @@ module ContentProviders
12
12
  .view_context
13
13
  .current_participant
14
14
  .activities
15
- .in_the_future
15
+ .starts_in_the_future
16
16
  .order(start_time: :asc)
17
17
  }
18
18
  )
@@ -8,6 +8,7 @@ class Message < ActiveRecord::Base
8
8
  has_many :delivered_messages, dependent: :destroy
9
9
 
10
10
  validates :subject, :sender, :recipient, presence: true
11
+ validates :subject, length: { maximum: 255 }
11
12
  validate :participant_is_messageable,
12
13
  if: proc { |message| message.recipient.try(:notify_by_email?) }
13
14
 
@@ -21,7 +21,11 @@
21
21
 
22
22
  <div class="form-group">
23
23
  <label for="message_subject" class="control-label">Subject</label>
24
- <%= f.text_field :subject, required: true, value: subject, class: "form-control .col-xs-12 .col-sm-6 .col-md-6 .col-lg-4" %>
24
+ <%= f.text_field :subject,
25
+ required: true,
26
+ value: subject,
27
+ class: "form-control .col-xs-12 .col-sm-6 .col-md-6 .col-lg-4",
28
+ maxlength: 255 %>
25
29
  </div>
26
30
 
27
31
  <div class="form-group">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # nodoc
3
3
  module ThinkFeelDoEngine
4
- VERSION = "3.22.2"
4
+ VERSION = "3.22.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: think_feel_do_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.2
4
+ version: 3.22.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails