Sha256: 94bcaffd5c862d0a4fec187c6924f3e4390c09fbec86f2ecf34a88c31fb07a47

Contents?: true

Size: 934 Bytes

Versions: 10

Compression:

Stored size: 934 Bytes

Contents

←   [documentation](documentation.md)

### TheComments config

Following rails generator will copy default config file into your application

```ruby
bundle exec rails g the_comments config
```

**config/initializers/the_comments.rb**

```ruby
# 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.empty_trap_protection     = true
  config.tolerance_time_protection = true
end
```

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
fuck_comments-2.3.4 docs/config_file.md
the_comments_ruby-2.3.4 docs/config_file.md
the_comments_ruby-2.3.3 docs/config_file.md
the_comments-2.3.1 docs/config_file.md
the_comments-2.2.2 docs/config_file.md
the_comments-2.2.1 docs/config_file.md
the_comments-2.2.0 docs/config_file.md
the_comments-2.1.0 docs/config_file.md
the_comments-2.0.1 docs/config_file.md
the_comments-2.0.0 docs/config_file.md