[logaling-commit] logaling/logaling-server [master] Remove unnecessary lines

Back to archive index

SHIMADA Koji null+****@clear*****
Mon Dec 24 21:00:55 JST 2012


SHIMADA Koji	2012-12-24 21:00:55 +0900 (Mon, 24 Dec 2012)

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

  Merged 2027dad: Merge pull request #46 from logaling/enable-adding-multiple-terms

  Log:
    Remove unnecessary lines

  Modified files:
    app/models/user_glossary.rb

  Modified: app/models/user_glossary.rb (+1 -2)
===================================================================
--- app/models/user_glossary.rb    2012-12-17 20:39:34 +0900 (8a5f927)
+++ app/models/user_glossary.rb    2012-12-24 21:00:55 +0900 (b56683f)
@@ -56,7 +56,7 @@ class UserGlossary < ActiveRecord::Base
     terms.each do |term|
       valid = false unless term.valid?
     end
-    raise ArgumentError unless valid#terms.all?(&:valid?)
+    raise ArgumentError unless valid
 
     glossary = find_glossary
     raise Logaling::GlossaryNotFound unless glossary
@@ -69,7 +69,6 @@ class UserGlossary < ActiveRecord::Base
     end
 
     terms.each do |term|
-      p term
       glossary.add(term.source_term, term.target_term, term.note, false)
     end
     glossary.index!
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



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