Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Full constant name

  • Loading branch information...
commit b64996970a902877a1d1d9e4fefd7a907e0484b9 1 parent fa751ae
@lifo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sidekick/association_proxy_monkey.rb
View
2  lib/sidekick/association_proxy_monkey.rb
@@ -24,7 +24,7 @@ def association_accessor_methods(reflection, association_proxy_class)
if association.nil? || force_reload
association = association_proxy_class.new(self, reflection)
retval = force_reload ? reflection.klass.uncached { association.reload } : association.load
- if retval.nil? and association_proxy_class == BelongsToAssociation
+ if retval.nil? and association_proxy_class == ActiveRecord::Associations::BelongsToAssociation
association_instance_set(reflection.name, nil)
return nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.