Guest User

Untitled

a guest
Jul 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. default_scope :order => "created_on ASC"
  2.  
  3. def self.featured_on_page(page, klasses=[])
  4. features = klasses.present? ? find_all_by_featured_type(klasses.map(&:to_s)) : all
  5. process_for_view features.find_all(&:"#{page}_page?")
  6. end
Add Comment
Please, Sign In to add comment