auto_demeter 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/auto_demeter/methods.rb +1 -1
- data/lib/auto_demeter/version.rb +1 -1
- metadata +4 -4
data/lib/auto_demeter/methods.rb
CHANGED
@@ -17,7 +17,7 @@ module AutoDemeter
|
|
17
17
|
public
|
18
18
|
def respond_through_association?(method_id)
|
19
19
|
if children_names && (match_data=method_id.to_s.match(reflected_children_regex)) && match_data[1].present?
|
20
|
-
association_name=self.methods.include?(match_data[1]) ? match_data[1] : "#{self.class.name.underscore}_#{match_data[1]}"
|
20
|
+
association_name=(self.methods.include?(match_data[1].intern) || self.methods.include?(match_data[1])) ? match_data[1] : "#{self.class.name.underscore}_#{match_data[1]}"
|
21
21
|
begin
|
22
22
|
if association=send(association_name)
|
23
23
|
association.respond_to?(match_data[2])
|
data/lib/auto_demeter/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_demeter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul McKibbin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2016-
|
18
|
+
date: 2016-09-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: sqlite3
|