Sha256: c4456c71abe875e796a3a8b07466df1d458945d10579208269a20960c7669f70

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

# Dummy application configuration file
Commontator.configure do |config|
  config.javascript_proc = lambda { |view| '// Some javascript' }

  config.user_name_proc = lambda { |user| user.try(:name) || 'Anonymous' }

  config.thread_read_proc = lambda { |thread, user| user && user.can_read }

  config.thread_moderator_proc = lambda { |thread, user| user.is_admin || user.can_edit }

  config.comment_voting = :ld

  config.thread_subscription = :m
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.10.4 spec/dummy/config/initializers/commontator.rb~
commontator-4.10.3 spec/dummy/config/initializers/commontator.rb
commontator-4.10.2 spec/dummy/config/initializers/commontator.rb
commontator-4.10.1 spec/dummy/config/initializers/commontator.rb
commontator-4.10.0 spec/dummy/config/initializers/commontator.rb
commontator-4.9.0 spec/dummy/config/initializers/commontator.rb