bookyt_projects 0.19.13 → 0.19.14

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.
@@ -51,6 +51,9 @@ class WorkDay < ActiveRecord::Base
51
51
  #
52
52
  # Lookup the employment for this day.
53
53
  def employment
54
+ # Guard as only some classes provide .employments
55
+ return nil unless person.respond_to?(:employments)
56
+
54
57
  person.employments.current(self.date)
55
58
  end
56
59
 
@@ -1,3 +1,3 @@
1
1
  module BookytPos
2
- VERSION = '0.19.13'
2
+ VERSION = '0.19.14'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_projects
3
3
  version: !ruby/object:Gem::Version
4
- hash: 73
4
+ hash: 79
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 19
9
- - 13
10
- version: 0.19.13
9
+ - 14
10
+ version: 0.19.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-03-08 00:00:00 Z
19
+ date: 2012-03-20 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails