"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.8.3/db/fixtures/007_web_hook_event_types.rb" (14 Apr 2022, 1192 Bytes) of package /linux/www/discourse-2.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    2 
    3 WebHookEventType.seed do |b|
    4   b.id = WebHookEventType::TOPIC
    5   b.name = "topic"
    6 end
    7 
    8 WebHookEventType.seed do |b|
    9   b.id = WebHookEventType::POST
   10   b.name = "post"
   11 end
   12 
   13 WebHookEventType.seed do |b|
   14   b.id = WebHookEventType::USER
   15   b.name = "user"
   16 end
   17 
   18 WebHookEventType.seed do |b|
   19   b.id = WebHookEventType::GROUP
   20   b.name = "group"
   21 end
   22 
   23 WebHookEventType.seed do |b|
   24   b.id = WebHookEventType::CATEGORY
   25   b.name = "category"
   26 end
   27 
   28 WebHookEventType.seed do |b|
   29   b.id = WebHookEventType::TAG
   30   b.name = "tag"
   31 end
   32 
   33 WebHookEventType.seed do |b|
   34   b.id = WebHookEventType::REVIEWABLE
   35   b.name = "reviewable"
   36 end
   37 
   38 WebHookEventType.seed do |b|
   39   b.id = WebHookEventType::NOTIFICATION
   40   b.name = "notification"
   41 end
   42 
   43 WebHookEventType.seed do |b|
   44   b.id = WebHookEventType::SOLVED
   45   b.name = "solved"
   46 end
   47 
   48 WebHookEventType.seed do |b|
   49   b.id = WebHookEventType::ASSIGN
   50   b.name = "assign"
   51 end
   52 
   53 WebHookEventType.seed do |b|
   54   b.id = WebHookEventType::USER_BADGE
   55   b.name = "user_badge"
   56 end
   57 
   58 WebHookEventType.seed do |b|
   59   b.id = WebHookEventType::GROUP_USER
   60   b.name = "group_user"
   61 end
   62 
   63 WebHookEventType.seed do |b|
   64   b.id = WebHookEventType::LIKE
   65   b.name = "like"
   66 end