Class: MuckComments::Configuration
- Inherits:
-
Object
- Object
- MuckComments::Configuration
- Defined in:
- lib/muck-comments/config.rb
Instance Attribute Summary collapse
-
#sanitize_content ⇒ Object
This will send out an email to each user that has participated in a comment thread.
-
#send_email_for_new_comments ⇒ Object
Returns the value of attribute send_email_for_new_comments.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_content ⇒ Object
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_comments ⇒ Object
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 |