Changeset 1233
- Timestamp:
- 12/17/07 02:48:27 (1 year ago)
- Files:
-
- acts_as_reportable/Rakefile (modified) (1 diff)
- acts_as_reportable/lib/ruport/acts_as_reportable.rb (modified) (2 diffs)
- acts_as_reportable/test/acts_as_reportable_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
acts_as_reportable/Rakefile
r1207 r1233 3 3 require "rake/gempackagetask" 4 4 5 AAR_VERSION = "0.9. 9"5 AAR_VERSION = "0.9.10" 6 6 7 7 begin acts_as_reportable/lib/ruport/acts_as_reportable.rb
r1232 r1233 168 168 :only => only, 169 169 :except => except, 170 :methods => methods) }.flatten 171 170 :methods => methods) }.flatten 172 171 173 172 table = Ruport::Data::Table.new(:data => data, … … 308 307 self.class.aar_columns = cols 309 308 end 310 311 self.class.aar_columns |= data_records.first.keys 309 310 self.class.aar_columns |= data_records.first.keys 312 311 313 312 data_records = 314 add_includes(data_records, options[:include]) if options[:include] 313 add_includes(data_records, options[:include]) if options[:include] 314 315 315 data_records 316 316 end acts_as_reportable/test/acts_as_reportable_test.rb
r1232 r1233 169 169 end 170 170 171 def test_column_sorting_works_with_include_option 171 def test_column_sorting_works_with_include_option 172 172 actual = Player.report_table(:all, 173 173 :only => %w[name personal_trainer.name],
