ar-simple-idmap 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/identity_map/action_controller/dispatcher.rb +0 -2
- data/spec/identity_map_spec.rb +6 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -17,12 +17,10 @@ module ActionController
|
|
17
17
|
|
18
18
|
module ClassMethods
|
19
19
|
def use_identity_map(*args)
|
20
|
-
skip_filter :without_identity_map, *args
|
21
20
|
around_filter :with_identity_map, *args
|
22
21
|
end
|
23
22
|
|
24
23
|
def dont_use_identity_map(*args)
|
25
|
-
skip_filter :with_identity_map, *args
|
26
24
|
around_filter :without_identity_map, *args
|
27
25
|
end
|
28
26
|
|
data/spec/identity_map_spec.rb
CHANGED
@@ -32,6 +32,12 @@ describe "Customers" do
|
|
32
32
|
d2 = p1.customer
|
33
33
|
d1.__id__.should == d2.target.__id__
|
34
34
|
end
|
35
|
+
|
36
|
+
it "should fetch same model with not handled conditions" do
|
37
|
+
d1 = Customer.first
|
38
|
+
d2 = Customer.find(:first, :conditions=>["id = ?", d1.id])
|
39
|
+
d1.__id__.should == d2.__id__
|
40
|
+
end
|
35
41
|
|
36
42
|
describe "creation and deletion:" do
|
37
43
|
before(:each) do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar-simple-idmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sokolov Yura aka funny_falcon
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-26 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|