active_event 0.5.0.rc1 → 0.5.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_event/command.rb +13 -0
- data/lib/active_event/event_type.rb +0 -1
- data/lib/active_event/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d560664dca2da1ce1fd06b7101d53e8dfe25d9a4
|
4
|
+
data.tar.gz: e9c67b41ec4268608db9e231e9f4d3942a473bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6861aaa29da32eab6f80b7c6670e353c7999b649497a090d6dd0360ec9c8f3446d7fd16571c6fc2415548f9d1f3b9a108eafd5eaa19a9d52c3d7d75665beb02
|
7
|
+
data.tar.gz: d871cd20f650f1d3404b7ec4492abf307792d3298a87bb6f23ba72355c2c4c9127b7eefe17c14835f5f55b049ceba4ab48379f7326232f83ec45141944cab040
|
data/lib/active_event/command.rb
CHANGED
@@ -31,5 +31,18 @@ module ActiveEvent
|
|
31
31
|
LOGGER.error e.backtrace.join("\n")
|
32
32
|
false
|
33
33
|
end
|
34
|
+
|
35
|
+
module ClassMethods
|
36
|
+
def form_name(name)
|
37
|
+
define_singleton_method(:model_name) do
|
38
|
+
@_model_name ||= begin
|
39
|
+
namespace = self.parents.detect do |n|
|
40
|
+
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
|
41
|
+
end
|
42
|
+
ActiveModel::Name.new(self, namespace, name)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
34
47
|
end
|
35
48
|
end
|
data/lib/active_event/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.
|
4
|
+
version: 0.5.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HicknHack Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|