[logaling-commit] logaling/logaling-server [prioritize-the-search] Create @user_config from current_user

Zurück zum Archiv-Index

SUZUKI Miho null+****@clear*****
Fri Sep 21 23:50:15 JST 2012


SUZUKI Miho	2012-09-21 23:50:15 +0900 (Fri, 21 Sep 2012)

  New Revision: 4cff0bb6a0cbaf7cc7c0ad1b08a289808848991e
  https://github.com/logaling/logaling-server/commit/4cff0bb6a0cbaf7cc7c0ad1b08a289808848991e

  Log:
    Create @user_config from current_user

  Modified files:
    app/controllers/dashboard_controller.rb

  Modified: app/controllers/dashboard_controller.rb (+1 -1)
===================================================================
--- app/controllers/dashboard_controller.rb    2012-09-21 23:21:20 +0900 (1574b3a)
+++ app/controllers/dashboard_controller.rb    2012-09-21 23:50:15 +0900 (90c66e4)
@@ -2,7 +2,7 @@ class DashboardController < ApplicationController
   before_filter :authenticate!
 
   def show
-    @user_config = UserConfig.new
+    @user_config = UserConfig.find_by_user_id(current_user.id)
     @user_glossaries = UserGlossary.find_all_by_user_id(current_user.id)
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Zurück zum Archiv-Index