freerange_acts_as_versioned 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'freerange_acts_as_versioned'
16
- s.version = '0.8.1'
16
+ s.version = '0.8.2'
17
17
  s.date = '2012-04-24'
18
18
  s.rubyforge_project = 'freerange_acts_as_versioned'
19
19
 
@@ -67,7 +67,7 @@ module ActiveRecord #:nodoc:
67
67
  #
68
68
  # See ActiveRecord::Acts::Versioned::ClassMethods#acts_as_versioned for configuration options
69
69
  module Versioned
70
- VERSION = "0.8.1"
70
+ VERSION = "0.8.2"
71
71
  CALLBACKS = [:set_new_version, :save_version, :save_version?]
72
72
 
73
73
  # == Configuration options
@@ -310,7 +310,7 @@ module ActiveRecord #:nodoc:
310
310
  # Override this method to set your own criteria for clearing old versions.
311
311
  def clear_old_auto_save_versions
312
312
  excess_baggage = self.class.versioned_class.where(["autosave = ? and #{self.class.versioned_foreign_key} = ?", true,id]).order("updated_at desc").all
313
- if excess_baggage.length > 1
313
+ if excess_baggage.length > 2
314
314
  excess_baggage.last.destroy
315
315
  end
316
316
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freerange_acts_as_versioned
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Abdul Rauf