Class: WikiContent
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- WikiContent
- Defined in:
- app/models/wiki_content.rb
Defined Under Namespace
Classes: Version
Instance Method Summary
- - (Object) project
-
- (Object) recipients
Returns the mail adresses of users that should be notified.
- - (Boolean) visible?(user = User.current)
Methods inherited from ActiveRecord::Base
Instance Method Details
- (Object) project
33 34 35 |
# File 'app/models/wiki_content.rb', line 33 def project page.project end |
- (Object) recipients
Returns the mail adresses of users that should be notified
38 39 40 41 42 |
# File 'app/models/wiki_content.rb', line 38 def recipients notified = project.notified_users notified.reject! {|user| !visible?(user)} notified.collect(&:mail) end |
- (Boolean) visible?(user = User.current)
29 30 31 |
# File 'app/models/wiki_content.rb', line 29 def visible?(user=User.current) page.visible?(user) end |