lib/materialize/repo.rb in materialize-0.3.2 vs lib/materialize/repo.rb in materialize-0.3.3

- old
+ new

@@ -12,9 +12,12 @@ data_source_class = args[0] options = args[1] || {} args_to_pass = options[:args] data, builder_class = process(data_source_class, query, args_to_pass) + + yield(data) if block_given? + options.delete(:args) if data.is_a?(Hash) and !data['message'].nil? Response.new data elsif data.is_a?(Array)