Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
fixing readme to use class method in model
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Jun 26, 2008
1 parent e4f0d0d commit 23baea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -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]
Expand Down

0 comments on commit 23baea2

Please sign in to comment.