Ruport::Reportable

Overview

This module is designed to allow an ActiveRecord model to be converted to Ruport's data structures. If ActiveRecord is available when Ruport is loaded, this module will be automatically mixed into ActiveRecord::Base.

Add the acts_as_reportable call to the model class that you want to integrate with Ruport:

class Book < ActiveRecord::Base
  acts_as_reportable
  belongs_to :author
end

Then you can use the report_table method to get data from the model using ActiveRecord.

Book.report_table(:all, :include => :author)

[Validate]

Generated with the Darkfish Rdoc Generator 2.