diff options
author | mr <mr@mrautenberg.de> | 2011-05-23 13:38:25 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-23 13:38:25 +0200 |
commit | 1b38f31db88255d90947ad5b4d2b088988ce8bbd (patch) | |
tree | b9e710986fd7e9cf00636c5a46a4fdfd4a99c037 /model.rb | |
parent | 6f161255e47a2198624ae1bc7149b45a07a32bc9 (diff) | |
parent | cfa443a8e93bd6f0e574c7c96f4cb0895a17c6f4 (diff) |
Merge branch 'release/2.0.0'v2.0.0
Diffstat (limited to 'model.rb')
-rw-r--r-- | model.rb | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,13 +1,18 @@ require 'ohm' +require 'ohm/contrib' class ToxCreateModel < Ohm::Model + 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 @@ -42,7 +47,7 @@ class ToxCreateModel < Ohm::Model attr_accessor :subjectid @subjectid = nil - #after :save, :check_policy + after :save, :check_policy def validation_status begin @@ -73,5 +78,4 @@ class ToxCreateModel < Ohm::Model OpenTox::Authorization.check_policy(web_uri, subjectid) end -end - +end
\ No newline at end of file |