fixed exampled in README - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit ed237f63da0adb5a71d40d44108ce5dbf2e13961
(DIR) parent 9b9d5b39c684033ff859ef9f36297b22a5187307
(HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
Date: Tue, 13 Jan 2009 23:51:10 +0800
fixed exampled in README
Signed-off-by: Marco Otte-Witte <marco.otte-witte@simplabs.com>
Diffstat:
M README.rdoc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/README.rdoc b/README.rdoc
@@ -7,12 +7,12 @@ ReportsAsSparkline enables you to generate reports and sparklines from your mode
This shows the basic usage. Consider the following user model, including +created_at+ and +activated_at+ timestamp fields.
class User < ActiveRecord::Base
- report_as_sparkline :registrations
- report_as_sparkline :activations, :date_column => :activated_at
- report_as_sparkline :total_users, :cumulate => true
+ reports_as_sparkline :registrations
+ reports_as_sparkline :activations, :date_column => :activated_at
+ reports_as_sparkline :total_users, :cumulate => true
end
-Using +report_as_sparkline+ like this will add the following class methods to your User model:
+Using +reports_as_sparkline+ like this will add the following class methods to your User model:
User.registrations_report
User.activations_report
@@ -38,7 +38,7 @@ If you are on Rails < 2.1, do this from your RAILS_ROOT
<b>generate migration</b>
- ./script/generate report_as_sparkline_migration add_report_as_sparkline_tables
+ ./script/generate reports_as_sparkline_migration add_reports_as_sparkline_tables
<b>migrate</b>