lib/saulabs/reportable/result_set.rb in reportable-1.4.1 vs lib/saulabs/reportable/result_set.rb in reportable-1.4.2
- old
+ new
@@ -7,11 +7,10 @@
# attributes, +model_class_name+ and +report_name+ that store
# the name of the model and the report the result set
# was generated from.
#
class ResultSet
- include Enumerable
# the name of the model the result set is based on
#
attr_reader :model_class_name
@@ -36,15 +35,9 @@
#
def initialize(array, model_class_name, report_name)
@results = array
@model_class_name = model_class_name
@report_name = report_name.to_s
- end
-
- # quack like an Enumerable
- #
- def each(&block)
- @results.each(&block)
end
end
end