Sha256: 6d7111bc7efcfbce4530250061171a445ef6f65faa4cc40b8cccaa251e0d992e

Contents?: true

Size: 739 Bytes

Versions: 7

Compression:

Stored size: 739 Bytes

Contents

# TheComments.config.param_name => value

TheComments.configure do |config|
  config.max_reply_depth     = 3                   # comments tree depth
  config.tolerance_time      = 10                  # sec - after this delay user can post a comment
  config.default_state       = :draft              # default state for comment
  config.default_owner_state = :published          # default state for comment for Moderator
  config.empty_inputs        = [:commentBody]      # array of spam trap fields
  config.default_title       = 'Undefined title'   # default commentable_title for denormalization
  config.template_engine     = :haml

  config.empty_trap_protection     = true
  config.tolerance_time_protection = true
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
the_comments_ruby-2.3.4 config/initializers/the_comments.rb
the_comments_ruby-2.3.3 config/initializers/the_comments.rb
the_comments-2.3.1 config/initializers/the_comments.rb
the_comments-2.2.1 config/initializers/the_comments.rb
the_comments-2.2.0 config/initializers/the_comments.rb
the_comments-2.1.0 config/initializers/the_comments.rb
the_comments-2.0.1 config/initializers/the_comments.rb