rubocop
This commit is contained in:
parent
0ffdaf200b
commit
3b3cec9fcc
5 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Api
|
||||
module V2
|
||||
class AttachmentsController < RestfulController
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AttachmentsController < ApplicationController
|
||||
before_action :set_attachment, only: [:destroy]
|
||||
after_action :verify_authorized
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AttachmentPolicy < ApplicationPolicy
|
||||
class Scope < Scope
|
||||
def resolve
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Api
|
||||
module V2
|
||||
class AttachmentSerializer < ApplicationSerializer
|
||||
|
|
|
@ -7,7 +7,7 @@ Metamaps::Application.routes.draw do
|
|||
root to: 'main#home', via: :get
|
||||
get 'request', to: 'main#requestinvite', as: :request
|
||||
|
||||
resources :attachments, only: [:create, :destroy], shallow: true
|
||||
resources :attachments, only: %i[create destroy], shallow: true
|
||||
|
||||
namespace :explore do
|
||||
get 'active'
|
||||
|
|
Loading…
Reference in a new issue