SUZUKI Miho
null+****@clear*****
Tue Sep 25 20:36:34 JST 2012
SUZUKI Miho 2012-09-25 20:36:34 +0900 (Tue, 25 Sep 2012) New Revision: 2b3f5d5bb556724b75dc62f663b6f268bdfaad42 https://github.com/logaling/logaling-server/commit/2b3f5d5bb556724b75dc62f663b6f268bdfaad42 Merged 971b851: Merge pull request #14 from logaling/prioritize-the-search Log: Remove unnecessary method Modified files: app/models/user_config.rb app/models/user_glossary.rb Modified: app/models/user_config.rb (+0 -5) =================================================================== --- app/models/user_config.rb 2012-09-25 20:21:22 +0900 (d99cbdc) +++ app/models/user_config.rb 2012-09-25 20:36:34 +0900 (220b597) @@ -14,9 +14,4 @@ class UserConfig < ActiveRecord::Base def glossary LogalingServer.repository.find_glossary(glossary_name, source_language, target_language) end - - private - def id_to_config(id) - id.split(".", 3) - end end Modified: app/models/user_glossary.rb (+0 -4) =================================================================== --- app/models/user_glossary.rb 2012-09-25 20:21:22 +0900 (eefa1dc) +++ app/models/user_glossary.rb 2012-09-25 20:36:34 +0900 (846b6eb) @@ -13,10 +13,6 @@ class UserGlossary < ActiveRecord::Base "%05d-%s" % [user_id, name] end - def config_key - "%s.%s.%s" % [glossary_name, source_language, target_language] - end - def add!(term) raise ArgumentError unless term.valid? -------------- next part -------------- An HTML attachment was scrubbed... Download