sequel-audit_by_day 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,8 @@ module Sequel
29
29
  :audit_version_columns, :audit_default_valid_from
30
30
 
31
31
  def find_for(audited_id, at)
32
- where(audit_foreign_key => audited_id, :for => at).with_current_version.first
32
+ where(audit_foreign_key => audited_id, :for => at).
33
+ with_current_version.limit(1).all.first
33
34
  end
34
35
 
35
36
  def audit(master, previous_values, updated_values, update_time, updated_by)
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module AuditByDay
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-audit_by_day
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-21 00:00:00.000000000 Z
13
+ date: 2012-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sequel_bitemporal
@@ -59,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  segments:
61
61
  - 0
62
- hash: -471555587537663744
62
+ hash: -3566353464661125867
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: -471555587537663744
71
+ hash: -3566353464661125867
72
72
  requirements: []
73
73
  rubyforge_project:
74
74
  rubygems_version: 1.8.24