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 CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.8
@@ -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.7"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremyw-paper_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Stewart