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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f70091540a91fc47a2375590332d1ed00055f635
4
- data.tar.gz: 3f21927f3be3ec5c9b50a2f07712cedf15b93f6e
3
+ metadata.gz: 25e7699a96d54e92e0da4c06e702154c04676f72
4
+ data.tar.gz: 7d5a48be9ec6e92a918f849d4d771efdf8fc212b
5
5
  SHA512:
6
- metadata.gz: 3bd7077dbb8129899fe9a358b5619664db4640e196f2884c804e20a8bc50804d526d6213bea54ff8f3dea3f86e61510a9aa915a516626a98636737068ae18c71
7
- data.tar.gz: 6703fa9f38d370cb7ba21bb744dde6daaa8bc25cf323f1f64d9e6220fc661aa9705b6d51da88f15f1f0728143c7385365c80fd88377283218682c4412512db77
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
- if scope.class.reflect_on_association(link_data.to_sym).options[:class_name].present?
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
@@ -1,3 +1,3 @@
1
1
  module Manage
2
- VERSION = "1.3.7"
2
+ VERSION = "1.3.8"
3
3
  end
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.7
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-17 00:00:00.000000000 Z
12
+ date: 2013-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails