Adds email notification on wiki changes (#413). It's disabled by default and can be enabled in application settings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2749 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
6e0a818caf
commit
9c9dc6e814
44 files changed
+314
-4
No files matched your search
@@ -25,6 +25,11 @@ class WikiContent < ActiveRecord::Base
|
||||
validates_length_of :comments, :maximum => 255, :allow_nil => true
|
||||
|
||||
acts_as_versioned
|
||||
|
||||
def project
|
||||
page.project
|
||||
end
|
||||
|
||||
class Version
|
||||
belongs_to :page, :class_name => '::WikiPage', :foreign_key => 'page_id'
|
||||
belongs_to :author, :class_name => '::User', :foreign_key => 'author_id'
|
||||
@@ -87,5 +92,4 @@ class WikiContent < ActiveRecord::Base
|
||||
:conditions => ["wiki_content_id = ? AND version < ?", wiki_content_id, version])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user