From 23baea2299f7ee0eb2f0d7cbb17bb7d6e850c000 Mon Sep 17 00:00:00 2001 From: Ryan Bates Date: Thu, 26 Jun 2008 07:42:02 -0700 Subject: [PATCH] fixing readme to use class method in model --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 9dbb936..f612459 100644 --- a/README +++ b/README @@ -27,7 +27,7 @@ This gem adds the scope_builder method to all Active Record models. A builder be The scope_builder method can also take a block which will return the builder. This is useful when you are using the builder in a model search method. # in product model - def search(options) + def self.search(options) scope_builder do |builder| builder.released.visible builder.cheap if options[:cheap]