[logaling-commit] logaling/logaling-server [master] Use Logaling::Repository#imported_projects

Back to archive index

SHIMADA Koji null+****@clear*****
Wed Dec 5 12:06:58 JST 2012


SHIMADA Koji	2012-12-05 12:06:58 +0900 (Wed, 05 Dec 2012)

  New Revision: 139580840c0b97e3786710acc3266faef69a31ee
  https://github.com/logaling/logaling-server/commit/139580840c0b97e3786710acc3266faef69a31ee

  Log:
    Use Logaling::Repository#imported_projects

  Modified files:
    app/controllers/pages_controller.rb

  Modified: app/controllers/pages_controller.rb (+1 -7)
===================================================================
--- app/controllers/pages_controller.rb    2012-12-05 12:05:57 +0900 (97c3390)
+++ app/controllers/pages_controller.rb    2012-12-05 12:06:58 +0900 (e7dfc96)
@@ -6,12 +6,6 @@ class PagesController < ApplicationController
   def explore
     @github_projects = GithubProject.all
     @user_glossaries = UserGlossary.all
-    @imported_projects = imported_projects
-  end
-
-  private
-  #TODO: Logaling::Repository#imported_projects を用意して、そちらを使う
-  def imported_projects
-    LogalingServer.repository.projects.select {|project| project.is_a? Logaling::ImportedProject }
+    @imported_projects = LogalingServer.repository.imported_projects
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index