Sha256: ed40f80e85dde65fd53ec85a24ddffe487948a14f1eded7caf944e1c20556ca1

Contents?: true

Size: 739 Bytes

Versions: 8

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      = 5                   # 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

8 entries across 8 versions & 2 rubygems

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