logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

themes.rb (230B)


  1. # frozen_string_literal: true
  2. require 'singleton'
  3. require 'yaml'
  4. class Themes
  5. include Singleton
  6. def initialize
  7. @conf = YAML.load_file(Rails.root.join('config', 'themes.yml'))
  8. end
  9. def names
  10. @conf.keys
  11. end
  12. end