trust 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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