lib/workflow_setup.rb
# Load the superusers from a config file
Load the superusers from a config file
Load the superusers from a config file
def load_superusers
    admin_role.users = [] 
    admin_role.save
    @superusers_config["superusers"].each_key do |provider|
      @superusers_config["superusers"][provider].each do |s|
        make_superuser(s, provider)
      end
    end
  end
def load_superusers admin_role . users = [ ] admin_role . save @superusers_config [ "superusers" ] . each_key do | provider | @superusers_config [ "superusers" ] [ provider ] . each do | s | make_superuser ( s , provider ) end end end
Load the superusers from a config file
Load the superusers from a config file
# Remove all the admin users every time you reload