public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
Removed SimplyHelpful plugin (functionality has been rolled into Rails) 
and modified ResourceFeeder as necessary.
lukemelia (author)
Wed Jun 18 13:13:37 -0700 2008
sr (committer)
Mon Jun 23 01:02:17 -0700 2008
commit  58974ec1389e18bfd8a7bf5c24cdfca60ef87134
tree    d77a89f704e8a200449d93d6079194e451aeb21e
parent  2c09db45c5b6dcbf6099dd5f0101b5ee5a9dc242
  • vendor/plugins/resource_feeder/lib/resource_feeder/atom.rb
  • vendor/plugins/resource_feeder/lib/resource_feeder/rss.rb
  • vendor/plugins/simply_helpful/CHANGELOG
  • vendor/plugins/simply_helpful/README
  • vendor/plugins/simply_helpful/Rakefile
  • vendor/plugins/simply_helpful/init.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/av_extensions.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/controller_extensions.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/jsg_extensions.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/polymorphic_routes.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/record_identification_helper.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb
  • vendor/plugins/simply_helpful/lib/simply_helpful/record_tag_helper.rb
  • vendor/plugins/simply_helpful/test/controller_extensions_test.rb
  • vendor/plugins/simply_helpful/test/form_helper_extensions_test.rb
  • vendor/plugins/simply_helpful/test/record_identifier_test.rb
  • vendor/plugins/simply_helpful/test/record_tag_helper_test.rb
  • vendor/plugins/simply_helpful/test/simply_helpful_test.rb
  • vendor/plugins/simply_helpful/test/test_helper.rb
...
3
4
5
 
6
7
8
...
25
26
27
28
 
29
30
31
32
33
34
35
 
36
37
38
...
3
4
5
6
7
8
9
...
26
27
28
 
29
30
31
32
33
34
35
 
36
37
38
39
0
@@ -3,6 +3,7 @@ require 'resource_feeder/common'
0
 module ResourceFeeder
0
   module Atom
0
     include ResourceFeeder::Common
0
+ include ActionController::Routing
0
     extend self
0
     
0
     def render_atom_feed_for(resources, options = {})
0
@@ -25,14 +26,14 @@ module ResourceFeeder
0
       
0
       options[:feed][:title] ||= klass.name.pluralize
0
       options[:feed][:id] ||= "tag:#{request.host_with_port}:#{klass.name.pluralize}"
0
- options[:feed][:link] ||= SimplyHelpful::PolymorphicRoutes.polymorphic_url(new_record, options[:url_writer])
0
+ options[:feed][:link] ||= polymorphic_url(new_record, :controller => options[:url_writer])
0
       
0
       options[:item][:title] ||= [ :title, :subject, :headline, :name ]
0
       options[:item][:description] ||= [ :description, :body, :content ]
0
       options[:item][:pub_date] ||= [ :updated_at, :updated_on, :created_at, :created_on ]
0
       options[:item][:author] ||= [ :author, :creator ]
0
       
0
- resource_link = lambda { |r| SimplyHelpful::PolymorphicRoutes.polymorphic_url(r, options[:url_writer]) }
0
+ resource_link = lambda { |r| polymorphic_url(r, :controller => options[:url_writer]) }
0
 
0
       xml.instruct!
0
       xml.feed "xml:lang" => "en-US", "xmlns" => 'http://www.w3.org/2005/Atom' do
...
3
4
5
 
6
7
8
...
25
26
27
28
 
29
30
31
...
33
34
35
36
 
37
38
39
...
3
4
5
6
7
8
9
...
26
27
28
 
29
30
31
32
...
34
35
36
 
37
38
39
40
0
@@ -3,6 +3,7 @@ require 'resource_feeder/common'
0
 module ResourceFeeder
0
   module Rss
0
     include ResourceFeeder::Common
0
+ include ActionController::Routing
0
     extend self
0
 
0
     def render_rss_feed_for(resources, options = {})
0
@@ -25,7 +26,7 @@ module ResourceFeeder
0
       use_content_encoded = options[:item].has_key?(:content_encoded)
0
 
0
       options[:feed][:title] ||= klass.name.pluralize
0
- options[:feed][:link] ||= SimplyHelpful::PolymorphicRoutes.polymorphic_url(new_record, options[:url_writer])
0
+ options[:feed][:link] ||= polymorphic_url(new_record, :controller => options[:url_writer])
0
       options[:feed][:language] ||= "en-us"
0
       options[:feed][:ttl] ||= "40"
0
 
0
@@ -33,7 +34,7 @@ module ResourceFeeder
0
       options[:item][:description] ||= [ :description, :body, :content ]
0
       options[:item][:pub_date] ||= [ :updated_at, :updated_on, :created_at, :created_on ]
0
 
0
- resource_link = lambda { |r| SimplyHelpful::PolymorphicRoutes.polymorphic_url(r, options[:url_writer]) }
0
+ resource_link = lambda { |r| polymorphic_url(r, :controller => options[:url_writer]) }
0
 
0
       rss_root_attributes = { :version => 2.0 }
0
       rss_root_attributes.merge!("xmlns:content" => "http://purl.org/rss/1.0/modules/content/") if use_content_encoded

Comments

    No one has commented yet.