entity_events 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/entity_events.rb +1 -1
- data/lib/entity_events/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: 8ab68e2fdb9ac9abfeed8157a96a1fae6ee1e7e2
|
|
4
|
+
data.tar.gz: 938f71e55da57b79d33f00e32d00bcd85d944758
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a7c51ba9d3c5853a2636da1205f5f707129ba20dc2bece42e4738efc5da5df40c0baef4f2d728f962e8fb2406e241475d95accf7f3d853bd96d0e4ff2a4ed53
|
|
7
|
+
data.tar.gz: 5cee9489c373b368bcadfe17c70cdae62d8f998eaf63bde5af8c49a8a59a6f447f5611c07fe216820bf6f86bbad4ae84e53a165730f4533cd8665fd9795ad904
|
data/lib/entity_events.rb
CHANGED
|
@@ -92,7 +92,7 @@ module EntityEvents
|
|
|
92
92
|
|
|
93
93
|
def default_target
|
|
94
94
|
id = params["#{params[:controller].to_s.singularize}_id"] || params[:id]
|
|
95
|
-
params[:controller].classify.constantize.find id if id
|
|
95
|
+
params[:controller].classify.split(':').last.constantize.find id if id
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: entity_events
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Dean
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|