[logaling-commit] logaling/logaling-server [master] Remove unneccesary #to_i

Back to archive index

SHIMADA Koji null+****@clear*****
Wed Sep 19 20:05:09 JST 2012


SHIMADA Koji	2012-09-19 20:05:09 +0900 (Wed, 19 Sep 2012)

  New Revision: 0c1d3ae7f530c84a7254d7ab608f6e675f568fc2
  https://github.com/logaling/logaling-server/commit/0c1d3ae7f530c84a7254d7ab608f6e675f568fc2

  Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary

  Log:
    Remove unneccesary #to_i

  Modified files:
    app/controllers/user_glossaries_controller.rb

  Modified: app/controllers/user_glossaries_controller.rb (+1 -1)
===================================================================
--- app/controllers/user_glossaries_controller.rb    2012-09-19 19:51:36 +0900 (b8c632e)
+++ app/controllers/user_glossaries_controller.rb    2012-09-19 20:05:09 +0900 (71bf9f4)
@@ -6,7 +6,7 @@ class UserGlossariesController < ApplicationController
   # GET /user_glossaries/1
   # GET /user_glossaries/1.json
   def show
-    @user_glossary = UserGlossary.find(params[:id].to_i)
+    @user_glossary = UserGlossary.find(params[:id])
   end
 
   # GET /user_glossaries/new
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



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