mm_dirtier 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mm_dirtier/extensions.rb +13 -0
- data/lib/mm_dirtier/support.rb +1 -1
- data/lib/mm_dirtier/version.rb +1 -1
- metadata +4 -4
@@ -6,35 +6,48 @@ module MongoMapper
|
|
6
6
|
def can_be_observable?
|
7
7
|
false
|
8
8
|
end
|
9
|
+
def observable?
|
10
|
+
false
|
11
|
+
end
|
9
12
|
end
|
10
13
|
|
11
14
|
class ManyEmbeddedProxy
|
12
15
|
def can_be_observable?; true; end
|
16
|
+
def observable?; @observable; end
|
13
17
|
|
14
18
|
def make_observable
|
15
19
|
class << self; include MmDirtier::ManyEmbeddedProxyListener; end unless observable?
|
20
|
+
@observable = true
|
16
21
|
end
|
17
22
|
end
|
18
23
|
|
19
24
|
class ManyEmbeddedPolymorphicProxy
|
20
25
|
def can_be_observable?; true; end
|
26
|
+
def observable?; @observable; end
|
21
27
|
|
22
28
|
def make_observable
|
23
29
|
class << self; include MmDirtier::ManyEmbeddedProxyListener; end unless observable?
|
30
|
+
@observable = true
|
24
31
|
end
|
25
32
|
end
|
26
33
|
|
27
34
|
class InArrayProxy
|
28
35
|
def can_be_observable?; true; end
|
36
|
+
def observable?; @observable; end
|
37
|
+
|
29
38
|
def make_observable
|
30
39
|
class << self; include MmDirtier::InArrayProxyListener;end unless observable?
|
40
|
+
@observable = true
|
31
41
|
end
|
32
42
|
end
|
33
43
|
|
34
44
|
class OneEmbeddedProxy
|
35
45
|
def can_be_observable?; true; end
|
46
|
+
def observable?; @observable; end
|
47
|
+
|
36
48
|
def make_observable
|
37
49
|
class << self; include MmDirtier::OneEmbeddedProxyListener;end unless observable?
|
50
|
+
@observable = true
|
38
51
|
end
|
39
52
|
end
|
40
53
|
|
data/lib/mm_dirtier/support.rb
CHANGED
data/lib/mm_dirtier/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm_dirtier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Stults
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-13 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|