From 792cbf9743845d16de9e75e68f06949148ac70c9 Mon Sep 17 00:00:00 2001 From: John McAliley Date: Sun, 27 Nov 2011 23:43:30 -0500 Subject: [PATCH] code formatting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 76d3542..737e76e 100644 --- a/README.md +++ b/README.md @@ -110,15 +110,15 @@ Adding a counter cache ---------------------- Impressionist makes it easy to add a `counter_cache` column to your model. The most basic configuration looks like: - is_impressionable :counter_cache => true + is_impressionable :counter_cache => true This will automatically increment the `impressions_count` column in the included model. Note: You'll need to add that column to your model. If you'd like specific a different column name, you can: - is_impressionable :counter_cache => { :column_name => :my_column } + is_impressionable :counter_cache => { :column_name => :my_column } If you'd like to include only unique impressions in your count: - is_impressionable :counter_cache => { :column_name => :my_column, :unique => true } + is_impressionable :counter_cache => { :column_name => :my_column, :unique => true } What if I only want to record unique impressions?