diff options
author | mr <mr@mrautenberg.de> | 2011-03-15 12:14:14 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-03-15 12:14:14 +0100 |
commit | a6ee4587bfcb565e87ab597b4e1156467ab67152 (patch) | |
tree | 563790ef82305a2f12874af6eafe697b3cc40224 /model.rb | |
parent | 37b3ecfa4bb27b2eb9ffe8efa7bf8a4d32cf1dca (diff) |
sorting of models, created_at automation, ohm::callback
Diffstat (limited to 'model.rb')
-rw-r--r-- | model.rb | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,5 @@ require 'ohm' +require 'ohm/contrib' #require 'redis/objects' #@@redis = Redis.new(:thread_safe=>true)#(:host => '127.0.0.1', :port => 6379) @@ -7,12 +8,16 @@ class ToxCreateModel < Ohm::Model #include Redis::Objects #include DataMapper::Resource #attribute :id + include Ohm::Callbacks + include Ohm::Typecast + include Ohm::Timestamping + attribute :name attribute :warnings attribute :error_messages attribute :type attribute :status - attribute :created_at + attribute :created_at, Date attribute :task_uri attribute :uri |