Skip to content

Commit

Permalink
Linting again
Browse files Browse the repository at this point in the history
  • Loading branch information
jericson committed Jul 3, 2024
1 parent cb27a78 commit 18d5a22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/controllers/contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
class ContactsController < ApplicationController
requires_plugin "discourse-contact-plugin"

# requires_login
before_action :ensure_admin, only: [:index, :destroy]
# requires_login
before_action :ensure_admin, only: %i[index destroy]

skip_before_action :check_xhr, :verify_authenticity_token, :redirect_to_login_if_required, only: [:create]
skip_before_action :check_xhr,
:verify_authenticity_token,
:redirect_to_login_if_required,
only: [:create]

def create
Rails.logger.info "Called ContactsController#update"
Expand Down Expand Up @@ -49,7 +52,6 @@ def create
render json: { contact: contact }
end


def index
Rails.logger.info "Called ContactsController#index"
contacts = ContactStore.get_contacts()
Expand Down

0 comments on commit 18d5a22

Please sign in to comment.