Class: FeedPortlet
- Inherits:
-
Portlet
- Object
- Portlet
- FeedPortlet
- Defined in:
- app/portlets/feed_portlet.rb
Instance Method Summary collapse
-
#render ⇒ Object
handler “erb”.
Instance Method Details
#render ⇒ Object
handler “erb”
4 5 6 7 8 |
# File 'app/portlets/feed_portlet.rb', line 4 def render raise ArgumentError, "No feed URL specified" if self.url.blank? @feed = Feed.find_or_create_by_url_and_content_type(self.url, self.content_type).parsed_contents instance_eval(self.code) unless self.code.blank? end |