def method_missing(method_name, *args, &block)
      if @object.loaded? || METHODS_WITHOUT_RELOAD.include?(method_name)
        # no need to reload
      else
        StorageRoom.log("Reloading #{@object['url']} due to #{method_name}")
        @object.reload(@object['url'], @parameters)
      end

      @object.send(method_name, *args, &block)       
    end
def method_missing(method_name, *args, &block)
      if @object.loaded? || METHODS_WITHOUT_RELOAD.include?(method_name)
        # no need to reload
      else
        StorageRoom.log("Reloading #{@object['url']} due to #{method_name}")
        @object.reload(@object['url'], @parameters)
      end

      @object.send(method_name, *args, &block)       
    end
def method_missing ( method_name , * args , & block ) if @object . loaded? || METHODS_WITHOUT_RELOAD . include? ( method_name ) # no need to reload else StorageRoom . log ( "Reloading #{@object['url']} due to #{method_name}" ) @object . reload ( @object [ 'url' ] , @parameters ) end @object . send ( method_name , args , block ) end
Forward all method calls to the proxied object, reload if necessary
Forward all method calls to the proxied object reload if necessary