search for: load_feeds

Displaying 1 result from an estimated 1 matches for "load_feeds".

2010 Sep 30
2
How to use a class, put it inside a model?
class Feeds FEEDS = %W( http://feed.kennisnet.nl/Basisonderwijs http://feed.kennisnet.nl/Voortgezetonderwijs http://wp.digischool.nl/nieuws/feed/ ) def load_feeds @feeds_ds = feeds.first @feeds = vopo? ? feeds.second : feeds.last end def feeds @feeds ||= Feedzirra::Feed.fetch_and_parse(FEEDS).values.map { | feed| feed.entries.first(6) }.entries end def vopo? params[:vopo] == ''po'' end end This is my class. I wou...