config_file = Rails.root.join("config/ls-omniauth.yml") LS_OMNIAUTH = OpenStruct.new( config: LsOmniauth::Config.new(File.exists?(config_file) ? YAML.load_file(config_file)[Rails.env] : {}), environment: Rails.env )