From efd8a6fb7b06b7fbfcfafa1ae53dd84e5cf7ff45 Mon Sep 17 00:00:00 2001 From: cowboycoded Date: Thu, 10 Feb 2011 16:23:32 -0500 Subject: [PATCH] more additions to Usage instructions --- README.rdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index d54ea34..ca1e065 100644 --- a/README.rdoc +++ b/README.rdoc @@ -60,7 +60,9 @@ Specify actions you want logged in a controller impressionist :actions=>[:show,:index] end -Make your models impressionable. This allows you to attach impressions to an AR model instance. +Make your models impressionable. This allows you to attach impressions to an AR model instance. +Impressionist will automatically log the Model name (based on action_name) and the id (based on params[:id]), but in order to get the count of impressions (example: @widget.impression_count), +you will need to make your model impressionalble class Widget < ActiveRecord::Base is_impressionable