benhoskings-ambitious-activerecord 0.1.3.6 → 0.1.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,13 @@
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{ambitious-activerecord}
7
- s.version = "0.1.3.6"
7
+ s.version = "0.1.3.7"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Chris Wanstrath", "Ben Hoskings"]
13
- s.date = %q{2009-04-16}
13
+ s.date = %q{2009-05-04}
14
14
  s.description = %q{An ambitious adapter for ActiveRecord}
15
15
  s.email = %q{chris@ozmm.org, ben@hoskings.net}
16
16
  s.extra_rdoc_files = ["lib/ambition/adapters/active_record/base.rb", "lib/ambition/adapters/active_record/query.rb", "lib/ambition/adapters/active_record/select.rb", "lib/ambition/adapters/active_record/slice.rb", "lib/ambition/adapters/active_record/sort.rb", "lib/ambition/adapters/active_record/statements.rb", "lib/ambition/adapters/active_record.rb"]
@@ -4,8 +4,11 @@ module Ambition
4
4
  def find *args
5
5
  with_context_scope(to_hash) { owner.find *args }
6
6
  end
7
- def find_with_deleted *args
8
- with_context_scope(to_hash) { owner.find_with_deleted *args }
7
+ def find_with_destroyed *args
8
+ with_context_scope(to_hash) { owner.find_with_destroyed *args }
9
+ end
10
+ def find_destroyed_only *args
11
+ with_context_scope(to_hash) { owner.find_destroyed_only *args }
9
12
  end
10
13
 
11
14
  def count *args
@@ -13,8 +16,11 @@ module Ambition
13
16
  end
14
17
  alias_method :size, :count
15
18
 
16
- def count_with_deleted *args
17
- with_context_scope(to_hash) { owner.count_with_deleted *args }
19
+ def count_with_destroyed *args
20
+ with_context_scope(to_hash) { owner.count_with_destroyed *args }
21
+ end
22
+ def count_destroyed_only *args
23
+ with_context_scope(to_hash) { owner.count_destroyed_only *args }
18
24
  end
19
25
 
20
26
  def paginate *args
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benhoskings-ambitious-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.6
4
+ version: 0.1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-04-16 00:00:00 -07:00
13
+ date: 2009-05-04 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency