trust 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.klass.reflect_on_association(name) ?
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
@@ -23,5 +23,5 @@
23
23
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
24
 
25
25
  module Trust
26
- VERSION = "0.6.2"
26
+ VERSION = "0.6.3"
27
27
  end