From dac7cdc7b20ed068c237a5dda6c672b40b5e5a80 Mon Sep 17 00:00:00 2001 From: reesericci Date: Wed, 24 Jan 2024 15:22:26 +0000 Subject: [PATCH] linting --- app/controllers/api/v1/api_controller.rb | 2 +- app/controllers/api/v1/domains_controller.rb | 2 +- config/environments/development.rb | 1 - db/migrate/20240118051026_create_doorkeeper_tables.rb | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/api/v1/api_controller.rb b/app/controllers/api/v1/api_controller.rb index ce80904..4b2fe2d 100644 --- a/app/controllers/api/v1/api_controller.rb +++ b/app/controllers/api/v1/api_controller.rb @@ -1,4 +1,4 @@ -class Api::V1::ApiController < ActionController::Base +class Api::V1::ApiController < ActionController::Base #standard:disable all skip_before_action :verify_authenticity_token before_action :not_provisional diff --git a/app/controllers/api/v1/domains_controller.rb b/app/controllers/api/v1/domains_controller.rb index ad52928..e3a8a66 100644 --- a/app/controllers/api/v1/domains_controller.rb +++ b/app/controllers/api/v1/domains_controller.rb @@ -7,7 +7,7 @@ class Api::V1::DomainsController < Api::V1::ApiController before_action only: [:create, :destroy] do doorkeeper_authorize! :domains_write end - + skip_before_action :authorize_domain, only: [:index, :create] def index diff --git a/config/environments/development.rb b/config/environments/development.rb index 9366428..737577f 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -78,7 +78,6 @@ config.enable_reloading = true - config.hosts << "oblong.test" config.hosts << "oblong.underpass.clb.li" diff --git a/db/migrate/20240118051026_create_doorkeeper_tables.rb b/db/migrate/20240118051026_create_doorkeeper_tables.rb index 269ca9b..fcb51b5 100644 --- a/db/migrate/20240118051026_create_doorkeeper_tables.rb +++ b/db/migrate/20240118051026_create_doorkeeper_tables.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true - +# standard:disable all class CreateDoorkeeperTables < ActiveRecord::Migration[7.1] def change create_table :oauth_applications do |t|