# 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