yodeler 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yodeler/models/event_types/base.rb +4 -1
- data/lib/yodeler/version.rb +1 -1
- data/lib/yodeler.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b6de4e46a81133f10692f5ec5594cb096c9a2c
|
4
|
+
data.tar.gz: 3cdb96c2c9a439475c7ab8b34e4597f57484d8c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27d98f591d650b19c4565f2a0fa6c909b73b1ea7ed4aa243453e673b68675cb5e6bcea890af6d2ca48d9f7ee078f1ee75a624fcdf1c4a1a9322d3dcffcc7f470
|
7
|
+
data.tar.gz: 26ec8aca4c553cf40a7d2b2039c5fa023d194c6e9cfc8b842d210230b21a07022521553f427f1b573563eaa581a4bda8de71753dd6cd6927580973977b94bba1
|
@@ -38,7 +38,10 @@ module Yodeler
|
|
38
38
|
#
|
39
39
|
# @return [~Yodeler::EventType::Base] the logged event
|
40
40
|
def self.yodel!(params)
|
41
|
-
|
41
|
+
# Add the event type to the yodeler_event_types table
|
42
|
+
current_event_type = self.first_or_create name: Yodeler.registrations.key(self)
|
43
|
+
|
44
|
+
#current_event_type = self.first
|
42
45
|
current_event = current_event_type.events.create(params)
|
43
46
|
|
44
47
|
current_event_type.subscriptions.each do |subscriber|
|
data/lib/yodeler/version.rb
CHANGED
data/lib/yodeler.rb
CHANGED
@@ -42,9 +42,6 @@ module Yodeler
|
|
42
42
|
yield event_type_klass.configuration
|
43
43
|
end
|
44
44
|
|
45
|
-
# Add the event type to the yodeler_event_types table
|
46
|
-
event_type_klass.first_or_create name: event_type
|
47
|
-
|
48
45
|
# keep track of the registrations
|
49
46
|
Yodeler.registrations[event_type] = event_type_klass
|
50
47
|
event_type_klass
|