parent
da823f4899
commit
614cc63d49
@ -0,0 +1,26 @@ |
||||
#-- encoding: UTF-8 |
||||
#-- copyright |
||||
# OpenProject is a project management system. |
||||
# |
||||
# Copyright (C) 2012-2013 the OpenProject Team |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License version 3. |
||||
# |
||||
# See doc/COPYRIGHT.rdoc for more details. |
||||
#++ |
||||
|
||||
class Journal::DocumentJournal < ActiveRecord::Base |
||||
self.table_name = "document_journals" |
||||
|
||||
@@journaled_attributes = [:project_id, |
||||
:category_id, |
||||
:title, |
||||
:description, |
||||
:created_on] |
||||
|
||||
def journaled_attributes |
||||
attributes.symbolize_keys.select{|k,_| @@journaled_attributes.include? k} |
||||
end |
||||
|
||||
end |
Loading…
Reference in new issue