punchcard 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/punchcard/punch.rb +3 -1
- data/punchcard.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.8
|
data/lib/punchcard/punch.rb
CHANGED
@@ -12,7 +12,9 @@ class Punch < ActiveRecord::Base
|
|
12
12
|
end
|
13
13
|
|
14
14
|
validate do |p|
|
15
|
-
p.
|
15
|
+
if p.checked_out_at.blank? and p.person.pending? and p.person.pending?.id != p.id
|
16
|
+
p.errors.add :person, "Person already has a pending punch!"
|
17
|
+
end
|
16
18
|
end
|
17
19
|
|
18
20
|
after_save do |p|
|
data/punchcard.gemspec
CHANGED