punchcard 0.2.6 → 0.2.7
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 +1 -1
- data/punchcard.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/lib/punchcard/punch.rb
CHANGED
@@ -12,7 +12,7 @@ class Punch < ActiveRecord::Base
|
|
12
12
|
end
|
13
13
|
|
14
14
|
validate do |p|
|
15
|
-
p.errors.add :person, "Person already has a pending punch!" if p.person.pending? and p.person.pending
|
15
|
+
p.errors.add :person, "Person already has a pending punch!" if p.person.pending? and p.person.pending?.id != p.id
|
16
16
|
end
|
17
17
|
|
18
18
|
after_save do |p|
|
data/punchcard.gemspec
CHANGED