class Object
Public Instance Methods
pfeed_content(pfeed)
click to toggle source
# File lib/pfeed.rb, line 19 def pfeed_content(pfeed) #FIXME: interesting idea , but currently un-supported controller.send('render_to_string', :partial => "pfeeds/#{pfeed.view_template_name}.html.erb", :locals => {:object => pfeed}) end
pfeed_item_url(pfeed_item)
click to toggle source
# File lib/pfeed.rb, line 24 def pfeed_item_url(pfeed_item) # same as: polymorphic_url pfeed_item.originator # but no need to query the database send(pfeed_item.originator_type.underscore + '_url', pfeed_item.originator_id) end