lib/consul/power.rb in consul-0.10.1 vs lib/consul/power.rb in consul-0.10.2
- old
+ new
@@ -16,10 +16,10 @@
# has_many associations (which behave scopish) trigger their query
# when you try to negate them, compare them or even retrieve their
# class. Unfortunately we can only reproduce this in live Rails
# apps, not in Consul tests. Might be some standard gem that is not
# loaded in Consul tests.
- result.respond_to?(:scoped) || !!result
+ result.respond_to?(:load_target, true) || !!result
end
def default_include_object?(power_name, *args)
object = args.pop
context = args