"Fossies" - the Fresh Open Source Software Archive

Member "discourse-3.1.1/db/fixtures/002_groups.rb" (12 Sep 2023, 224 Bytes) of package /linux/www/discourse-3.1.1.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
    3 Group.ensure_automatic_groups!
    4 if g = Group.find_by(name: "trust_level_5", id: 15)
    5   g.destroy!
    6 end
    8 Group.where(name: "everyone").update_all(visibility_level: Group.visibility_levels[:staff])