[logaling-commit] logaling/logaling-server [prioritize-the-search] Revert "Move Term into LogalingServer module"

Zurück zum Archiv-Index

SHIMADA Koji null+****@clear*****
Wed Sep 19 17:32:42 JST 2012


SHIMADA Koji	2012-09-19 17:32:42 +0900 (Wed, 19 Sep 2012)

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

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

  Log:
    Revert "Move Term into LogalingServer module"
    
    This reverts commit 664ab4e9f9bed8a3ee2a42ff8e9d785e0fb38ebc.

  Modified files:
    app/models/term.rb

  Modified: app/models/term.rb (+6 -9)
===================================================================
--- app/models/term.rb    2012-09-19 17:21:42 +0900 (3f2eea0)
+++ app/models/term.rb    2012-09-19 17:32:42 +0900 (8e73b1b)
@@ -1,13 +1,10 @@
 #coding: utf-8
-module LogalingServer
-  class Term
-    include ActiveAttr::Model
+class Term
+  include ActiveAttr::Model
 
-    attribute :source_term, type: String, default: ''
-    attribute :target_term, type: String, default: ''
-    attribute :note, type: String, default: ''
+  attribute :source_term, type: String, default: ''
+  attribute :target_term, type: String, default: ''
+  attribute :note, type: String, default: ''
 
-    validates_presence_of :source_term, :target_term
-  end
+  validates_presence_of :source_term, :target_term
 end
-
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



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