emitter 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/emitter.rb +0 -10
- metadata +4 -4
data/lib/emitter.rb
CHANGED
|
@@ -10,7 +10,6 @@ module BrighterPlanet
|
|
|
10
10
|
module Emitter
|
|
11
11
|
def included(base)
|
|
12
12
|
base.extend ClassMethods
|
|
13
|
-
base.extend AssociationClassMethods if base.respond_to? :reflect_on_all_associations
|
|
14
13
|
|
|
15
14
|
emitter_klass = self.to_s.split('::').last.underscore
|
|
16
15
|
|
|
@@ -32,14 +31,5 @@ module BrighterPlanet
|
|
|
32
31
|
end
|
|
33
32
|
end
|
|
34
33
|
end
|
|
35
|
-
|
|
36
|
-
module AssociationClassMethods
|
|
37
|
-
def run_data_miner_on_belongs_to_associations
|
|
38
|
-
reflect_on_all_associations(:belongs_to).each do |a|
|
|
39
|
-
next if a.options[:polymorphic]
|
|
40
|
-
a.klass.run_data_miner!
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
34
|
end
|
|
45
35
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: emitter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 9
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 11
|
|
10
|
+
version: 0.0.11
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andy Rossmeissl
|
|
@@ -19,7 +19,7 @@ autorequire:
|
|
|
19
19
|
bindir: bin
|
|
20
20
|
cert_chain: []
|
|
21
21
|
|
|
22
|
-
date: 2010-09-
|
|
22
|
+
date: 2010-09-07 00:00:00 -05:00
|
|
23
23
|
default_executable:
|
|
24
24
|
dependencies:
|
|
25
25
|
- !ruby/object:Gem::Dependency
|