benhoskings-ambitious-activerecord 0.1.3.3 → 0.1.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,15 +17,6 @@ module Ambition
|
|
17
17
|
with_context_scope(to_hash) { owner.count_with_deleted *args }
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
protected
|
22
|
-
|
23
|
-
def with_context_scope find_conditions, &block
|
24
|
-
owner.send :with_scope, :find => find_conditions do
|
25
|
-
yield
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
20
|
def within outer_scope, join_association
|
30
21
|
context = ambition_context
|
31
22
|
|
@@ -39,5 +30,14 @@ module Ambition
|
|
39
30
|
context
|
40
31
|
end
|
41
32
|
|
33
|
+
|
34
|
+
protected
|
35
|
+
|
36
|
+
def with_context_scope find_conditions, &block
|
37
|
+
owner.send :with_scope, :find => find_conditions do
|
38
|
+
yield
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
42
|
end
|
43
43
|
end
|