myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [1950] branches/event_logging/app: Subscriptions.


From: noreply
Subject: [myexperiment-hackers] [1950] branches/event_logging/app: Subscriptions.
Date: Wed, 12 Nov 2008 14:40:11 -0500 (EST)

Revision
1950
Author
alekses6
Date
2008-11-12 14:40:11 -0500 (Wed, 12 Nov 2008)

Log Message

Subscriptions. Minor variable naming improvement for previous commit.

Modified Paths

Diff

Modified: branches/event_logging/app/controllers/networks_controller.rb (1949 => 1950)


--- branches/event_logging/app/controllers/networks_controller.rb	2008-11-12 19:18:13 UTC (rev 1949)
+++ branches/event_logging/app/controllers/networks_controller.rb	2008-11-12 19:40:11 UTC (rev 1950)
@@ -373,12 +373,12 @@
   def find_network_shared_items
     # only called for preparing item collection shown in RSS feed;
     # on 'show' page "contributions/table" partial takes care of authorization of each item
-    @shared_items = []
+    @shared_items_rss = []
     shared_items = @network.shared_contributables
     
     shared_items.each do |item|
       # should be authorized for anonymous users
-      @shared_items << item if item.authorized?("show", nil)
+      @shared_items_rss << item if item.authorized?("show", nil)
     end
   end
   

Modified: branches/event_logging/app/views/networks/shared_items.rxml (1949 => 1950)


--- branches/event_logging/app/views/networks/shared_items.rxml	2008-11-12 19:18:13 UTC (rev 1949)
+++ branches/event_logging/app/views/networks/shared_items.rxml	2008-11-12 19:40:11 UTC (rev 1950)
@@ -8,7 +8,7 @@
     xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href ="" "http://#{request.host_with_port}/open_search.xml"
     xml.description "RSS feed listing all items shared with address@hidden Group on myExperiment.org"
     # iterate through the collection manually, as it contains items of different types
-    @shared_items.each do |item|
+    @shared_items_rss.each do |item|
       render(:partial => "layouts/#{item.class.to_s.downcase}", :object => item, :locals => { :xm => xml })
     end
   end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]