     # @return [Boolean] whether or not the inverse reflection is valid
     validInverseReflection = (reflection, inverseReflection) ->
       inverseReflection? &&
-        reflection.klass().className == inverseReflection.ActiveResource.className &&
+        reflection.klass().className == inverseReflection.activeResource.className &&
         canFindInverseOfAutomatically(inverseReflection)
 
   class @::HasManyReflection extends @::AbstractReflection


    # @return [String] the primaryKey for the owner ActiveResource of the reflection
    activeResourcePrimaryKey: ->
      @__activeResourcePrimaryKey ||= @options['primaryKey'] || @__primaryKey(@ActiveResource)

    # @return [Boolean] whether or not this reflection is for a collection of resources
    collection: ->

    # @return [Reflection,Boolean] the automaticInverseOf reflection for this reflection
    automaticInverseOf = (reflection) ->
      if canFindInverseOfAutomatically(reflection)
        inverseName = s.camelize(reflection.options['as'] || reflection.activeResource.className,true)

        try inverseReflection = reflection.klass().reflectOnAssociation(inverseName)
        catch e then inverseReflection = false
