lib/ripple/associations/proxy.rb in ripple-0.9.0.beta2 vs lib/ripple/associations/proxy.rb in ripple-0.9.0
- old
+ new
@@ -98,15 +98,15 @@
other === target
end
protected
def method_missing(method, *args, &block)
- if load_target
- if block_given?
- target.send(method, *args) { |*block_args| block.call(*block_args) }
- else
- target.send(method, *args)
- end
+ load_target
+
+ if block_given?
+ target.send(method, *args) { |*block_args| block.call(*block_args) }
+ else
+ target.send(method, *args)
end
end
def load_target
@target = find_target unless loaded?