[logaling-commit] logaling/logaling-server [prioritize-the-search] Set @user_glossaries from relation of current_user

Back to archive index

SHIMADA Koji null+****@clear*****
Tue Sep 25 19:06:28 JST 2012


SHIMADA Koji	2012-09-25 19:06:28 +0900 (Tue, 25 Sep 2012)

  New Revision: 72a93c62fc36d74a7d8b2fd1fb6c06c1348ed894
  https://github.com/logaling/logaling-server/commit/72a93c62fc36d74a7d8b2fd1fb6c06c1348ed894

  Log:
    Set @user_glossaries from relation of current_user

  Modified files:
    app/controllers/dashboard_controller.rb

  Modified: app/controllers/dashboard_controller.rb (+1 -1)
===================================================================
--- app/controllers/dashboard_controller.rb    2012-09-25 19:04:33 +0900 (80c4512)
+++ app/controllers/dashboard_controller.rb    2012-09-25 19:06:28 +0900 (647848a)
@@ -3,6 +3,6 @@ class DashboardController < ApplicationController
 
   def show
     @user_config = current_user.user_config || UserConfig.new
-    @user_glossaries = UserGlossary.find_all_by_user_id(current_user.id)
+    @user_glossaries = current_user.user_glossaries
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



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