Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default_scope :order => "created_on ASC"
- def self.featured_on_page(page, klasses=[])
- features = klasses.present? ? find_all_by_featured_type(klasses.map(&:to_s)) : all
- process_for_view features.find_all(&:"#{page}_page?")
- end
Add Comment
Please, Sign In to add comment