Changeset 1667
- Timestamp:
- 02/28/08 09:10:30 (3 months ago)
- Files:
-
- trunk/app/models/blog.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/blog.rb
r1665 r1667 179 179 def find_already_published(content_type) # :nodoc: 180 180 typo_deprecated "Use #{content_type}.find_already_published" 181 self.send(content_type).find_already_published181 content_type.to_s.camelize.constantize.find_already_published 182 182 end 183 183 … … 188 188 189 189 def requested_article(params) 190 published_articles.find_by_params_hash(params)190 Article.find_by_params_hash(params) 191 191 end 192 192 193 193 def requested_articles(params) 194 published_articles.find_all_by_date(*params.values_at(:year, :month, :day))194 Article.find_all_by_date(*params.values_at(:year, :month, :day)) 195 195 end 196 196 197 197 def articles_matching(query) 198 published_articles.search(query)198 Article.search(query) 199 199 end 200 200
