OSDN Git Service

update license test
[pettanr/pettanr.git] / app / models / common_license.rb
index 906fbfd..c525c4a 100644 (file)
@@ -130,4 +130,12 @@ class CommonLicense < ActiveRecord::Base
     CommonLicense.import t
   end
   
+  def import_error_message(c = '\n')
+    self.errors.each do |atr, messages|
+      if atr == :base
+      end
+      full_messages.join c
+    end
+  end
+  
 end