diff --git a/spec/dummy/config/federails.yml b/spec/dummy/config/federails.yml deleted file mode 100644 index 0f4521c..0000000 --- a/spec/dummy/config/federails.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -defaults: &defaults - app_name: - app_version: - force_ssl: false - site_host: http://localhost - site_port: 3000 - enable_discovery: true - open_registrations: false - app_layout: 'layouts/application' - server_routes_path: federation - #base_client_controller: ::ActionController::Base - -development: - <<: *defaults - -test: - <<: *defaults - site_port: null - -production: - <<: *defaults - force_ssl: true - site_port: 443 diff --git a/spec/dummy/config/initializers/federails.rb b/spec/dummy/config/initializers/federails.rb index 886fd9a..1f31128 100644 --- a/spec/dummy/config/initializers/federails.rb +++ b/spec/dummy/config/initializers/federails.rb @@ -1 +1,15 @@ -Federails.config_from 'federails' +# frozen_string_literal: true + +Federails.configure do |conf| + conf.app_name = "Dummy" + conf.app_version = "0.1" + + conf.site_host = "localhost" + conf.site_port = "3000" + conf.force_ssl = false + + conf.enable_discovery = true + conf.open_registrations = true + conf.server_routes_path = "federation" + conf.client_routes_path = nil +end