manage 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/manage/resource_helper.rb +3 -1
- data/lib/manage/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: 25e7699a96d54e92e0da4c06e702154c04676f72
|
4
|
+
data.tar.gz: 7d5a48be9ec6e92a918f849d4d771efdf8fc212b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe042d3681c58be34986e6f75162240638e3e2d1f584eeca9c50412491db1b8a151dde900a35693b5a7cc13d3f0b52cc6c168c62c3eac98697017fb08106ad05
|
7
|
+
data.tar.gz: 60f722144e5dc904eda56f34ee61f1a2c1831718c97c0261fc85d2fc28d23d54879a176c6ec978fd6a09fb4e0bd93f4a73314caeaa7b53acd9706429b5011e77
|
@@ -41,7 +41,9 @@ module Manage
|
|
41
41
|
|
42
42
|
if link_data.is_a? (Symbol) or link_data.is_a?(String)
|
43
43
|
relation = link_data.to_s
|
44
|
-
|
44
|
+
assocation = scope.class.reflect_on_association(link_data.to_sym)
|
45
|
+
raise "assocation #{link_data} not found on #{scope.class}" unless assocation
|
46
|
+
if assocation.options[:class_name].present?
|
45
47
|
rel_name = scope.class.reflect_on_association(link_data.to_sym).options[:class_name]
|
46
48
|
relation = rel_name.downcase.dasherize.pluralize
|
47
49
|
end
|
data/lib/manage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Empower United
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|