Sha256: c9ce9d55052f580e766f64d25d2e41a25e561f095cd46de69b7bd8833df37599
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
# Dummy application configuration file Commontator.configure do |config| config.javascript_proc = ->(view) { '// Some javascript' } config.user_name_proc = ->(user) { user.try(:name) || 'Anonymous' } config.thread_read_proc = ->(thread, user) { user && user.can_read } config.thread_moderator_proc = ->(thread, user) { user.is_admin || user.can_edit } config.comment_voting = :ld config.thread_subscription = :m config.mentions_enabled = true config.user_mentions_proc = ->(current_user, thread, query) { 'DummyUser'.include?(query) ? DummyUser.all : DummyUser.none } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-5.1.0 | spec/dummy/config/initializers/commontator.rb |
commontator-5.0.0 | spec/dummy/config/initializers/commontator.rb |