@ -123,7 +123,7 @@ class Report < ActiveRecord::Base
def_delegators :transformer , :column_first , :row_first
def_delegators :transformer , :column_first , :row_first
def_delegators :chain , :empty_chain , :top , :bottom , :chain_collect , :sql_statement , :all_group_fields , :child , :clear , :result
def_delegators :chain , :empty_chain , :top , :bottom , :chain_collect , :sql_statement , :all_group_fields , :child , :clear , :result
def_delegators :result , :each_direct_result , :recursive_each , :recursive_each_with_level , :each , :each_row , :count ,
def_delegators :result , :each_direct_result , :recursive_each , :recursive_each_with_level , :each , :each_row , :count ,
:units , :size , : final_number
:units , :final_number
def_delegators :table , :row_index , :colum_index
def_delegators :table , :row_index , :colum_index
def to_a
def to_a
@ -134,6 +134,12 @@ class Report < ActiveRecord::Base
chain . to_s
chain . to_s
end
end
def size
size = 0
recursive_each { | r | size += r . size }
size
end
def hash
def hash
report_string = " "
report_string = " "