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 CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -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? != p
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{punchcard}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
9
- version: 0.2.6
8
+ - 7
9
+ version: 0.2.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christoph Olszowka