Sha256: 8bc18960207abf971b5f831ccd3a6571b7f8c1ed6a93e461648b282bf515d82a
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
module MuckComments def self.configuration # In case the user doesn't setup a configure block we can always return default settings: @configuration ||= Configuration.new end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :send_email_for_new_comments # 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 attr_accessor :sanitize_content # Turns sanitize off/on for comments. We highly recommend leaving this on. def initialize self.send_email_for_new_comments = false self.sanitize_content = true end end end
Version data entries
5 entries across 5 versions & 1 rubygems