SHIMADA Koji
null+****@clear*****
Wed Sep 19 18:15:03 JST 2012
SHIMADA Koji 2012-09-19 18:15:03 +0900 (Wed, 19 Sep 2012) New Revision: 471f682301443bc2a8c8fa8b3c3c41e2df13325c https://github.com/logaling/logaling-server/commit/471f682301443bc2a8c8fa8b3c3c41e2df13325c Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary Log: Protect inside logaling-command see: e7c6e3ba16a352771f32096a5f5908bdf50952c1 Modified files: app/models/user_glossary.rb Modified: app/models/user_glossary.rb (+0 -5) =================================================================== --- app/models/user_glossary.rb 2012-09-19 17:32:42 +0900 (7a593ed) +++ app/models/user_glossary.rb 2012-09-19 18:15:03 +0900 (6c1b1c6) @@ -24,13 +24,8 @@ class UserGlossary < ActiveRecord::Base raise Logaling::TermError, "term '#{term.source_term}: #{term.target_term}' already exists in '#{name}'" end - #FIXME: tentative treatment :-< - _default_internal = Encoding.default_internal - Encoding.default_internal = nil glossary.add(term.source_term, term.target_term, term.note) LogalingServer.repository.index - ensure - Encoding.default_internal = _default_internal if _default_internal end private -------------- next part -------------- An HTML attachment was scrubbed... Download