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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0df39498450073bf6bf49850bc447905357304b3
4
- data.tar.gz: 8e4786282803b2b68c778bdfa8cb0a65959d7933
3
+ metadata.gz: d560664dca2da1ce1fd06b7101d53e8dfe25d9a4
4
+ data.tar.gz: e9c67b41ec4268608db9e231e9f4d3942a473bd0
5
5
  SHA512:
6
- metadata.gz: ed27ccdfc4e679f921f7881fbabbcd96c1f57be673604003fb478eda30376ebf39ccdc65c508aab03ca37472cd52b34627fd2796468e45a570a48f0ddf32fafe
7
- data.tar.gz: b1fa25522dccbec544fae7f76a636f84cd900d8509dca1d9108adee709a9d80274d66e1ae09ca9de498e337e0b55da7a0a009b12d635c8192c6ef0b6df91ae7e
6
+ metadata.gz: a6861aaa29da32eab6f80b7c6670e353c7999b649497a090d6dd0360ec9c8f3446d7fd16571c6fc2415548f9d1f3b9a108eafd5eaa19a9d52c3d7d75665beb02
7
+ data.tar.gz: d871cd20f650f1d3404b7ec4492abf307792d3298a87bb6f23ba72355c2c4c9127b7eefe17c14835f5f55b049ceba4ab48379f7326232f83ec45141944cab040
@@ -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
@@ -24,6 +24,5 @@ module ActiveEvent
24
24
 
25
25
  private
26
26
  attr_writer :store_infos
27
-
28
27
  end
29
28
  end
@@ -1,7 +1,7 @@
1
1
  module ActiveEvent
2
2
  # Returns the version of the currently loaded ActiveEvent as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new '0.5.0.rc1'
4
+ Gem::Version.new '0.5.0.rc2'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
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.rc1
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-23 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord