From baecdfe03a6bff2ee28d687f77b1c6606e102003 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 14 Dec 2010 12:47:16 +0100 Subject: remove token_id from saving in table --- application.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'application.rb') 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 -- cgit v1.2.3