trust 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trust/controller/resource.rb +1 -1
- data/lib/trust/version.rb +1 -1
- data/test/dummy/log/test.log +2380 -0
- metadata +4 -4
@@ -250,7 +250,7 @@ module Trust
|
|
250
250
|
def relation(associated_resource)
|
251
251
|
if associated_resource && associated_resource.object
|
252
252
|
name = associated_resource.as || plural_name
|
253
|
-
associated_resource.
|
253
|
+
associated_resource.object.class.reflect_on_association(name) ?
|
254
254
|
associated_resource.object.send(name) : associated_resource.object.send(klass.to_s.demodulize.underscore.pluralize)
|
255
255
|
else
|
256
256
|
klass
|
data/lib/trust/version.rb
CHANGED