Skip to content

Commit 95aba3c

Browse files
committed
COMPATIBILITY: more linting
1 parent f042f6b commit 95aba3c

File tree

18 files changed

+88
-72
lines changed

18 files changed

+88
-72
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ Discourse/TimeEqMatcher:
1717

1818
Discourse/NoAddReferenceOrAliasesActiveRecordMigration:
1919
Enabled: false
20+
21+
Lint/BooleanSymbol:
22+
Enabled: false
23+
24+
Discourse/Plugins/NoMonkeyPatching:
25+
Enabled: false

app/controllers/custom_wizard/admin/admin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::AdminController < ::Admin::AdminController
33
before_action :ensure_admin
4+
requires_plugin "discourse-custom-wizard"
45

56
private
67

app/controllers/custom_wizard/admin/api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::AdminApiController < CustomWizard::AdminController
33
skip_before_action :check_xhr, only: [:redirect]
4+
requires_plugin "discourse-custom-wizard"
45

56
def list
67
serializer =

app/controllers/custom_wizard/admin/custom_fields.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::AdminCustomFieldsController < CustomWizard::AdminController
3+
requires_plugin "discourse-custom-wizard"
4+
35
def index
46
render_json_dump(custom_fields: custom_field_list)
57
end

app/controllers/custom_wizard/admin/logs.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::AdminLogsController < CustomWizard::AdminController
33
before_action :find_wizard, except: [:index]
4+
requires_plugin "discourse-custom-wizard"
45

56
def index
67
render json:

app/controllers/custom_wizard/admin/manager.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
class CustomWizard::AdminManagerController < CustomWizard::AdminController
33
skip_before_action :check_xhr, only: [:export]
44
before_action :get_wizard_ids, except: [:import]
5+
requires_plugin "discourse-custom-wizard"
56

67
def export
78
templates = []

app/controllers/custom_wizard/admin/submissions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
class CustomWizard::AdminSubmissionsController < CustomWizard::AdminController
33
skip_before_action :preload_json, :check_xhr, only: [:download]
44
before_action :find_wizard, except: [:index]
5+
requires_plugin "discourse-custom-wizard"
56

67
def index
78
render json:

app/controllers/custom_wizard/admin/subscription.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::SubscriptionController < ::Admin::AdminController
33
before_action :ensure_admin
4+
requires_plugin "discourse-custom-wizard"
45

56
def index
67
if params[:update_from_remote]

app/controllers/custom_wizard/admin/wizard.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22
class CustomWizard::AdminWizardController < CustomWizard::AdminController
33
before_action :find_wizard, only: %i[show remove]
4+
requires_plugin "discourse-custom-wizard"
45

56
def index
67
render_json_dump(

app/controllers/custom_wizard/realtime_validations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# frozen_string_literal: true
22

33
class CustomWizard::RealtimeValidationsController < ::ApplicationController
4+
requires_plugin "discourse-custom-wizard"
5+
46
def validate
57
klass_str = "CustomWizard::RealtimeValidation::#{validation_params[:type].camelize}"
68
result = klass_str.constantize.new(current_user).perform(validation_params)

0 commit comments

Comments
 (0)