summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2010-12-14 12:47:16 +0100
committermr <mr@mrautenberg.de>2010-12-14 12:47:16 +0100
commitbaecdfe03a6bff2ee28d687f77b1c6606e102003 (patch)
tree9853a791f1066dbe4f75ba625836633d6de23952 /application.rb
parent1981b852f31223227fc1d384111d5cff59db07ea (diff)
remove token_id from saving in table
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index f11a211..7935577 100644
--- a/application.rb
+++ b/application.rb
@@ -4,13 +4,15 @@ require 'opentox-ruby'
class ModelStore
include DataMapper::Resource
- attr_accessor :prediction_dataset
+ attr_accessor :prediction_dataset, :token_id
property :id, Serial
property :uri, String, :length => 255
property :yaml, Text, :length => 2**32-1
- property :token_id, String, :length => 255
+ #property :token_id, String, :length => 255
property :created_at, DateTime
+ @token_id = nil
+
after :save, :check_policy
private