Permalink
Browse files

Fix README example

  • Loading branch information...
1 parent 38d03b8 commit 539a4831b2101710aa893b71d89ab41a2bce1e3f @jnicklas jnicklas committed Jan 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -20,7 +20,7 @@ require "ar_outer_joins"
class Product
belongs_to :category
- def published
+ def self.published
outer_joins(:category).where("categories.published = ? OR products.published = ?", true, true)
end
end

0 comments on commit 539a483

Please sign in to comment.