acts_as_pack_rat 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,15 +6,14 @@ class ActiveRecord::Base
6
6
  alias_method :destroy_without_callbacks!, :destroy_without_callbacks
7
7
  class << self
8
8
  [:find, :count, :sum, :calculate, :average, :minimum, :maximum].each do |m|
9
- alias_method "ar_#{m}", m
10
- alias_method "#{m}_with_deleted", "ar_#{m}"
9
+ alias_method "#{m}_with_deleted", m
11
10
  end
12
11
 
13
12
  [:find, :count].each do |m|
14
13
  eval %{
15
14
  def #{m}(*args)
16
15
  # puts "acts_as_pack_rat: #{m}!"
17
- do_without_deleted {ar_#{m}(*args)}
16
+ do_without_deleted {#{m}_with_deleted(*args)}
18
17
  end
19
18
  }
20
19
  end
@@ -23,7 +22,7 @@ class ActiveRecord::Base
23
22
  eval %{
24
23
  def #{m}(column_name, options = {})
25
24
  # puts "acts_as_pack_rat: #{m}!"
26
- do_without_deleted {ar_#{m}(column_name, options)}
25
+ do_without_deleted {#{m}_with_deleted(column_name, options)}
27
26
  end
28
27
  }
29
28
  end
@@ -2,4 +2,4 @@
2
2
  gem_name: acts_as_pack_rat
3
3
  package: acts_as_pack_rat
4
4
  project: magrathea
5
- version: 1.0.0
5
+ version: 1.0.1
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: acts_as_pack_rat
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2007-11-14 00:00:00 -05:00
6
+ version: 1.0.1
7
+ date: 2007-11-15 00:00:00 -05:00
8
8
  summary: acts_as_pack_rat
9
9
  require_paths:
10
10
  - lib