Class: MuckComments::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/muck-comments/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
23
# File 'lib/muck-comments/config.rb', line 20

def initialize
  self.send_email_for_new_comments = false
  self.sanitize_content = true
end

Instance Attribute Details

#sanitize_contentObject

This will send out an email to each user that has participated in a comment thread. The default email is basic and only includes the body of the comment. Add new email views to provide a better email for you users. They can be found in app/views/comment_mailer/new_comment.html.erb and app/views/comment_mailer/new_comment.text.erb



18
19
20
# File 'lib/muck-comments/config.rb', line 18

def sanitize_content
  @sanitize_content
end

#send_email_for_new_commentsObject

Returns the value of attribute send_email_for_new_comments.



14
15
16
# File 'lib/muck-comments/config.rb', line 14

def send_email_for_new_comments
  @send_email_for_new_comments
end