Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jseifer committed Mar 16, 2008
1 parent 1646424 commit e503a3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README
Expand Up @@ -10,4 +10,7 @@ def self.find_by_param(*args)
find_by_slug(*args)
end

You can also pass :raise_on_not_found => true to have it raise ActiveRecord::RecordNotFound
if the result set is empty.

Like I said, it's silly, but I find myself using this pattern a lot.

0 comments on commit e503a3a

Please sign in to comment.