jeremyw-paper_trail 1.2.7 → 1.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/paper_trail/version.rb +2 -8
- data/paper_trail.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.8
|
data/lib/paper_trail/version.rb
CHANGED
@@ -4,21 +4,15 @@ class Version < ActiveRecord::Base
|
|
4
4
|
before_save :set_user_id
|
5
5
|
validates_presence_of :event
|
6
6
|
|
7
|
-
named_scope :for_disease, lambda { |disease|
|
8
|
-
{ :joins => :users,
|
9
|
-
:conditions => {'users.disease_id' => disease}
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
7
|
named_scope :for_item_type, lambda { |item_types|
|
14
8
|
{ :conditions => { :item_type => item_types } }
|
15
9
|
}
|
16
10
|
|
17
11
|
named_scope :created_after, lambda { |time|
|
18
|
-
{ :conditions => ['created_at > ?', time] }
|
12
|
+
{ :conditions => ['versions.created_at > ?', time] }
|
19
13
|
}
|
20
14
|
|
21
|
-
named_scope :by_created_at_ascending, :order => 'created_at asc'
|
15
|
+
named_scope :by_created_at_ascending, :order => 'versions.created_at asc'
|
22
16
|
|
23
17
|
def reify
|
24
18
|
unless object.nil?
|
data/paper_trail.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{paper_trail}
|
5
|
-
s.version = "1.2.
|
5
|
+
s.version = "1.2.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Andy Stewart", "Jeremy Weiskotten", "Joe Lind"]
|