Sha256: f349ca4af200155dcc50048f6deb6817b6c144326d425594573c15699e4b8318
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 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 config.mentions_enabled = true config.user_mentions_proc = lambda { |current_user, query| next DummyUser.all if query.empty? 'DummyUser'.include?(query) ? [OpenStruct.new(id: 1, name: query)] : 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-4.11.0 | spec/dummy/config/initializers/commontator.rb~ |