lib/reviewed/article.rb in reviewed-0.2.0 vs lib/reviewed/article.rb in reviewed-0.2.1

- old
+ new

@@ -1,13 +1,15 @@ require 'reviewed/page' require 'reviewed/product' require 'reviewed/attachment' +require 'reviewed/deal' module Reviewed class Article < Base has_many :pages has_many :products has_many :attachments + has_many :deals def find_page(slug) pages.find { |page| page.slug.match(/#{slug}/i) } end